changeset 10560:d126f819ea24 libavcodec

Use avcodec_set_dimensions()
author michael
date Mon, 23 Nov 2009 19:45:40 +0000
parents 93b8130bf480
children d0e17b0a6845
files h264.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Mon Nov 23 19:24:17 2009 +0000
+++ b/h264.c	Mon Nov 23 19:45:40 2009 +0000
@@ -3832,8 +3832,7 @@
             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;