Mercurial > libavcodec.hg
changeset 11089:68fa9b353337 libavcodec
Check direct_8x8_inference_flag.
author | michael |
---|---|
date | Sun, 07 Feb 2010 15:12:37 +0000 |
parents | 1bfb70c225bb |
children | eda7b4f6db51 |
files | h264_ps.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)