1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-05 10:49:59 +02:00

Use avcodec_set_dimensions()

Originally committed as revision 20591 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2009-11-23 19:45:40 +00:00
parent e026902a62
commit 4c66e8849b

View File

@ -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;