Ticket #348: patchsisvel3D.diff

File patchsisvel3D.diff, 897 bytes (added by cehoyos, 5 years ago)
  • libavcodec/h264_ps.c

    diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
    index 61fb12c..c6eef92 100644
    a b int ff_h264_decode_seq_parameter_set(H264Context *h){ 
    405405            av_log(h->s.avctx, AV_LOG_ERROR, "insane cropping not completely supported, this could look slightly wrong ...\n"); 
    406406        } 
    407407        if(sps->crop_right >= crop_limit || sps->crop_bottom >= crop_limit){ 
    408             av_log(h->s.avctx, AV_LOG_ERROR, "brainfart cropping not supported, this could look slightly wrong ...\n"); 
     408            av_log(h->s.avctx, AV_LOG_ERROR, "brainfart cropping (right: %d, bottom: %d) not supported, disabling cropping.\n", sps->crop_right, sps->crop_bottom); 
     409            sps->crop_left  = 
     410            sps->crop_right = 
     411            sps->crop_top   = 
     412            sps->crop_bottom= 0; 
    409413        } 
    410414    }else{ 
    411415        sps->crop_left  =