# HG changeset patch # User stefano # Date 1268955414 0 # Node ID 9adad5749f23be30323be9196063c8498162dfb5 # Parent 7be32921237ff921ec7da30a1a31de5d780315fd Reinitialize the h264 decoder context on every valid aspect ratio change, not only size changes. Patch by Janusz Krzysztofik foo=zyszt . diff -r 7be32921237f -r 9adad5749f23 h264.c --- 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);