Revision 7c994c36 libavcodec/h264.c

View differences:

libavcodec/h264.c
1775 1775
        s->height= 16*s->mb_height - 4*FFMIN(h->sps.crop_bottom, 3);
1776 1776

  
1777 1777
    if (s->context_initialized
1778
        && (   s->width != s->avctx->width || s->height != s->avctx->height)) {
1778
        && (   s->width != s->avctx->width || s->height != s->avctx->height
1779
                || h->sps.sar.num != s->avctx->sample_aspect_ratio.num
1780
                || h->sps.sar.den != s->avctx->sample_aspect_ratio.den)) {
1779 1781
        if(h != h0)
1780 1782
            return -1;   // width / height changed during parallelized decoding
1781 1783
        free_tables(h);

Also available in: Unified diff