comparison h264.c @ 3285:d061e145af94 libavcodec

warn on interlaced streams
author lorenm
date Sun, 30 Apr 2006 19:31:45 +0000
parents a224d9752912
children 454de57e45cf
comparison
equal deleted inserted replaced
3284:a224d9752912 3285:d061e145af94
7282 avcodec_check_dimensions(NULL, 16*sps->mb_width, 16*sps->mb_height)) 7282 avcodec_check_dimensions(NULL, 16*sps->mb_width, 16*sps->mb_height))
7283 return -1; 7283 return -1;
7284 7284
7285 sps->frame_mbs_only_flag= get_bits1(&s->gb); 7285 sps->frame_mbs_only_flag= get_bits1(&s->gb);
7286 if(!sps->frame_mbs_only_flag) 7286 if(!sps->frame_mbs_only_flag)
7287 av_log(h->s.avctx, AV_LOG_ERROR, "interlacing is not supported, picture will probably be garbage\n");
7288 if(!sps->frame_mbs_only_flag)
7287 sps->mb_aff= get_bits1(&s->gb); 7289 sps->mb_aff= get_bits1(&s->gb);
7288 else 7290 else
7289 sps->mb_aff= 0; 7291 sps->mb_aff= 0;
7290 7292
7291 sps->direct_8x8_inference_flag= get_bits1(&s->gb); 7293 sps->direct_8x8_inference_flag= get_bits1(&s->gb);