From 4c66e8849bfe2a569bee15919219ed90c494c4c5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 23 Nov 2009 19:45:40 +0000 Subject: [PATCH] Use avcodec_set_dimensions() Originally committed as revision 20591 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index cf6771aa79..21ea0b4235 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;