# HG changeset patch # User cehoyos # Date 1267382013 0 # Node ID 5ceb00df7ec3bfe482c35e972682c36b740aa990 # Parent ad0ea9f21f9a769d6d1bd7e8d23543516e884795 Process picture aspect ratio changes in H.264. This fixes playback of such streams with ffplay (but does not affect current ffmpeg). Patch by Janusz Krzysztofik, jkrzyszt A tis D icnet D pl diff -r ad0ea9f21f9a -r 5ceb00df7ec3 h264.c --- a/h264.c Sun Feb 28 03:52:10 2010 +0000 +++ b/h264.c Sun Feb 28 18:33:33 2010 +0000 @@ -1775,7 +1775,9 @@ 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 + || h->sps.sar.num != s->avctx->sample_aspect_ratio.num + || h->sps.sar.den != s->avctx->sample_aspect_ratio.den)) { if(h != h0) return -1; // width / height changed during parallelized decoding free_tables(h);