Mercurial > libavcodec.hg
diff h264.c @ 10560:d126f819ea24 libavcodec
Use avcodec_set_dimensions()
author | michael |
---|---|
date | Mon, 23 Nov 2009 19:45:40 +0000 |
parents | 95f3daa991a2 |
children | 26dc0444fa93 |
line wrap: on
line diff
--- 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;