comparison h264.c @ 11326:cd6fa05ffeb0 libavcodec

revert r22112 which broke playback of cathedral-beta2-400extra-crop-avc.mp4
author aurel
date Mon, 01 Mar 2010 00:22:43 +0000
parents 5ceb00df7ec3
children e8e5dbbbf9c4
comparison
equal deleted inserted replaced
11325:c4c8c8c426eb 11326:cd6fa05ffeb0
1773 s->height= 16*s->mb_height - 2*FFMIN(h->sps.crop_bottom, 7); 1773 s->height= 16*s->mb_height - 2*FFMIN(h->sps.crop_bottom, 7);
1774 else 1774 else
1775 s->height= 16*s->mb_height - 4*FFMIN(h->sps.crop_bottom, 3); 1775 s->height= 16*s->mb_height - 4*FFMIN(h->sps.crop_bottom, 3);
1776 1776
1777 if (s->context_initialized 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)) {
1781 if(h != h0) 1779 if(h != h0)
1782 return -1; // width / height changed during parallelized decoding 1780 return -1; // width / height changed during parallelized decoding
1783 free_tables(h); 1781 free_tables(h);
1784 flush_dpb(s->avctx); 1782 flush_dpb(s->avctx);
1785 MPV_common_end(s); 1783 MPV_common_end(s);