# HG changeset patch # User michael # Date 1259005540 0 # Node ID d126f819ea2448cdc861419b2c173bfb46bfa3d6 # Parent 93b8130bf480803a85e0c676c3db1542ebe7576c Use avcodec_set_dimensions() diff -r 93b8130bf480 -r d126f819ea24 h264.c --- 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;