Fix incorrect printing of brainfart cropping error in some cases in progressive mode.
authorJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 11 Sep 2008 00:34:39 +0000 (00:34 +0000)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 11 Sep 2008 00:34:39 +0000 (00:34 +0000)
Originally committed as revision 15293 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index e888f76..758d8f5 100644 (file)
@@ -7090,7 +7090,7 @@ static inline int decode_seq_parameter_set(H264Context *h){
         if(sps->crop_left || sps->crop_top){
             av_log(h->s.avctx, AV_LOG_ERROR, "insane cropping not completely supported, this could look slightly wrong ...\n");
         }
-        if(sps->crop_right >= 8 || sps->crop_bottom >= (8>> !h->sps.frame_mbs_only_flag)){
+        if(sps->crop_right >= 8 || sps->crop_bottom >= (8>> !sps->frame_mbs_only_flag)){
             av_log(h->s.avctx, AV_LOG_ERROR, "brainfart cropping not supported, this could look slightly wrong ...\n");
         }
     }else{