Commit ae9c2e06 authored by michael's avatar michael

Use avcodec_set_dimensions()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20591 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 87f840a6
...@@ -3832,8 +3832,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ ...@@ -3832,8 +3832,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
if(context_init(h->thread_context[i]) < 0) if(context_init(h->thread_context[i]) < 0)
return -1; return -1;
s->avctx->width = s->width; avcodec_set_dimensions(s->avctx, s->width, s->height);
s->avctx->height = s->height;
s->avctx->sample_aspect_ratio= h->sps.sar; s->avctx->sample_aspect_ratio= h->sps.sar;
if(!s->avctx->sample_aspect_ratio.den) if(!s->avctx->sample_aspect_ratio.den)
s->avctx->sample_aspect_ratio.den = 1; s->avctx->sample_aspect_ratio.den = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment