[SCM] libav/experimental: Use avcodec_set_dimensions()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:54:47 UTC 2013


The following commit has been merged in the experimental branch:
commit 4c66e8849bfe2a569bee15919219ed90c494c4c5
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Mon Nov 23 19:45:40 2009 +0000

    Use avcodec_set_dimensions()
    
    Originally committed as revision 20591 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index cf6771a..21ea0b4 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3832,8 +3832,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
             if(context_init(h->thread_context[i]) < 0)
                 return -1;
 
-        s->avctx->width = s->width;
-        s->avctx->height = s->height;
+        avcodec_set_dimensions(s->avctx, s->width, s->height);
         s->avctx->sample_aspect_ratio= h->sps.sar;
         if(!s->avctx->sample_aspect_ratio.den)
             s->avctx->sample_aspect_ratio.den = 1;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list