mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 19:49:56 +00:00
avcodec/ituh263enc: Check den==0 in ff_h263_aspect_to_info()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
748ad112e2
commit
db0a52d611
@ -88,7 +88,7 @@ static const uint8_t wrong_run[102] = {
|
||||
av_const int ff_h263_aspect_to_info(AVRational aspect){
|
||||
int i;
|
||||
|
||||
if(aspect.num==0) aspect= (AVRational){1,1};
|
||||
if(aspect.num==0 || aspect.den==0) aspect= (AVRational){1,1};
|
||||
|
||||
for(i=1; i<6; i++){
|
||||
if(av_cmp_q(ff_h263_pixel_aspect[i], aspect) == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user