comparison h264.c @ 7844:d35a71a3db5f libavcodec

Fix incorrect printing of brainfart cropping error in some cases in progressive mode.
author darkshikari
date Thu, 11 Sep 2008 00:34:39 +0000
parents 8195c970d077
children d0489fa75c41
comparison
equal deleted inserted replaced
7843:58f33e404d6a 7844:d35a71a3db5f
7088 sps->crop_top = get_ue_golomb(&s->gb); 7088 sps->crop_top = get_ue_golomb(&s->gb);
7089 sps->crop_bottom= get_ue_golomb(&s->gb); 7089 sps->crop_bottom= get_ue_golomb(&s->gb);
7090 if(sps->crop_left || sps->crop_top){ 7090 if(sps->crop_left || sps->crop_top){
7091 av_log(h->s.avctx, AV_LOG_ERROR, "insane cropping not completely supported, this could look slightly wrong ...\n"); 7091 av_log(h->s.avctx, AV_LOG_ERROR, "insane cropping not completely supported, this could look slightly wrong ...\n");
7092 } 7092 }
7093 if(sps->crop_right >= 8 || sps->crop_bottom >= (8>> !h->sps.frame_mbs_only_flag)){ 7093 if(sps->crop_right >= 8 || sps->crop_bottom >= (8>> !sps->frame_mbs_only_flag)){
7094 av_log(h->s.avctx, AV_LOG_ERROR, "brainfart cropping not supported, this could look slightly wrong ...\n"); 7094 av_log(h->s.avctx, AV_LOG_ERROR, "brainfart cropping not supported, this could look slightly wrong ...\n");
7095 } 7095 }
7096 }else{ 7096 }else{
7097 sps->crop_left = 7097 sps->crop_left =
7098 sps->crop_right = 7098 sps->crop_right =