[FFmpeg-cvslog] h264: favor coded_width in resolution chnaged checks

Michael Niedermayer git at videolan.org
Thu Nov 3 20:23:28 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov  3 16:17:29 2011 +0100| [23acfcd9e57ecdfa2f638176d670ddb5436b4b90] | committer: Michael Niedermayer

h264: favor coded_width in resolution chnaged checks

Suggested-by: Joakim Plate <elupus at ecce.se>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23acfcd9e57ecdfa2f638176d670ddb5436b4b90
---

 libavcodec/h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index eb8b2f1..1b8f390 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2707,7 +2707,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
         s->height= 16*s->mb_height - (2<<s->chroma_y_shift)*FFMIN(h->sps.crop_bottom, (16>>s->chroma_y_shift)-1);
 
     if (s->context_initialized
-        && (   s->width != s->avctx->width || s->height != s->avctx->height
+        && (   s->width != s->avctx->coded_width || s->height != s->avctx->coded_height
             || s->avctx->bits_per_raw_sample != h->sps.bit_depth_luma
             || h->cur_chroma_format_idc != h->sps.chroma_format_idc
             || av_cmp_q(h->sps.sar, s->avctx->sample_aspect_ratio))) {



More information about the ffmpeg-cvslog mailing list