# HG changeset patch # User michael # Date 1265555557 0 # Node ID 68fa9b35333785226b65fdc14792408d9624c2ce # Parent 1bfb70c225bbc6766f398ea292ff50183d9812d2 Check direct_8x8_inference_flag. diff -r 1bfb70c225bb -r 68fa9b353337 h264_ps.c --- a/h264_ps.c Sun Feb 07 14:55:59 2010 +0000 +++ b/h264_ps.c Sun Feb 07 15:12:37 2010 +0000 @@ -347,6 +347,10 @@ sps->mb_aff= 0; sps->direct_8x8_inference_flag= get_bits1(&s->gb); + if(!sps->frame_mbs_only_flag && !sps->direct_8x8_inference_flag){ + av_log(h->s.avctx, AV_LOG_ERROR, "This stream was generated by a broken encoder, invalid 8x8 inference\n"); + goto fail; + } #ifndef ALLOW_INTERLACE if(sps->mb_aff)