comparison h264_ps.c @ 11089:68fa9b353337 libavcodec

Check direct_8x8_inference_flag.
author michael
date Sun, 07 Feb 2010 15:12:37 +0000
parents 4a95670ed5f1
children 7dd2a45249a9
comparison
equal deleted inserted replaced
11088:1bfb70c225bb 11089:68fa9b353337
345 sps->mb_aff= get_bits1(&s->gb); 345 sps->mb_aff= get_bits1(&s->gb);
346 else 346 else
347 sps->mb_aff= 0; 347 sps->mb_aff= 0;
348 348
349 sps->direct_8x8_inference_flag= get_bits1(&s->gb); 349 sps->direct_8x8_inference_flag= get_bits1(&s->gb);
350 if(!sps->frame_mbs_only_flag && !sps->direct_8x8_inference_flag){
351 av_log(h->s.avctx, AV_LOG_ERROR, "This stream was generated by a broken encoder, invalid 8x8 inference\n");
352 goto fail;
353 }
350 354
351 #ifndef ALLOW_INTERLACE 355 #ifndef ALLOW_INTERLACE
352 if(sps->mb_aff) 356 if(sps->mb_aff)
353 av_log(h->s.avctx, AV_LOG_ERROR, "MBAFF support not included; enable it at compile-time.\n"); 357 av_log(h->s.avctx, AV_LOG_ERROR, "MBAFF support not included; enable it at compile-time.\n");
354 #endif 358 #endif