diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-29 15:51:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-29 15:51:36 +0100 |
commit | db0a52d611d7319c8a1186829a50e29b9dfed63b (patch) | |
tree | 1100815d1290c3dfc68cef09b0d5fc99e6c4f35c /libavcodec | |
parent | 748ad112e2c07a517297b9592410c8fd627bc49a (diff) | |
download | ffmpeg-db0a52d611d7319c8a1186829a50e29b9dfed63b.tar.gz |
avcodec/ituh263enc: Check den==0 in ff_h263_aspect_to_info()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ituh263enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c index 43ad08026f..7d4d9b09db 100644 --- a/libavcodec/ituh263enc.c +++ b/libavcodec/ituh263enc.c @@ -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){ |