aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-11-23 19:45:40 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-11-23 19:45:40 +0000
commit4c66e8849bfe2a569bee15919219ed90c494c4c5 (patch)
treed8234e43b8a46cb5ca5ab3a6d9a68e39ad4c91c1
parente026902a6214debd12b1cdf80f82196c0863bc5c (diff)
downloadffmpeg-4c66e8849bfe2a569bee15919219ed90c494c4c5.tar.gz
Use avcodec_set_dimensions()
Originally committed as revision 20591 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264.c3
1 files changed, 1 insertions, 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;