[SCM] libav/experimental: div by zero aspect fix

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:42:45 UTC 2013


The following commit has been merged in the experimental branch:
commit eed4ebd22cddc238fed06e773d64ffb69dbdb6b7
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Jan 19 13:24:43 2005 +0000

    div by zero aspect fix
    
    Originally committed as revision 3850 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 22106a9..ade316b 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3469,6 +3469,8 @@ static int decode_slice_header(H264Context *h){
         s->avctx->width = s->width;
         s->avctx->height = s->height;
         s->avctx->sample_aspect_ratio= h->sps.sar;
+        if(!s->avctx->sample_aspect_ratio.den)
+            s->avctx->sample_aspect_ratio.den = 1;
 
         if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){
             s->avctx->frame_rate = h->sps.time_scale;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list