Mercurial > libavcodec.hg
changeset 11509:9adad5749f23 libavcodec
Reinitialize the h264 decoder context on every valid aspect ratio
change, not only size changes.
Patch by Janusz Krzysztofik foo=zyszt <jkr$foo@tis.icnet.pl>.
author | stefano |
---|---|
date | Thu, 18 Mar 2010 23:36:54 +0000 |
parents | 7be32921237f |
children | 927b985f73f4 |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Thu Mar 18 15:00:17 2010 +0000 +++ b/h264.c Thu Mar 18 23:36:54 2010 +0000 @@ -1774,7 +1774,8 @@ s->height= 16*s->mb_height - 4*FFMIN(h->sps.crop_bottom, 3); if (s->context_initialized - && ( s->width != s->avctx->width || s->height != s->avctx->height)) { + && ( s->width != s->avctx->width || s->height != s->avctx->height + || av_cmp_q(h->sps.sar, s->avctx->sample_aspect_ratio))) { if(h != h0) return -1; // width / height changed during parallelized decoding free_tables(h);