[FFmpeg-cvslog] r20591 - trunk/libavcodec/h264.c

michael subversion
Mon Nov 23 20:45:41 CET 2009


Author: michael
Date: Mon Nov 23 20:45:40 2009
New Revision: 20591

Log:
Use avcodec_set_dimensions()

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Mon Nov 23 20:24:17 2009	(r20590)
+++ trunk/libavcodec/h264.c	Mon Nov 23 20:45:40 2009	(r20591)
@@ -3832,8 +3832,7 @@ static int decode_slice_header(H264Conte
             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;



More information about the ffmpeg-cvslog mailing list