]> git.sesse.net Git - ffmpeg/commitdiff
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 e888f76100535c6a3d17a01babf1d09ad2053790..758d8f576e23ab5a326fa1779f032db5ad7f2044 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{