提交 33cbc605 编写于 作者: M Michael Niedermayer

vbv parameter parsing (more skiping actually ;) )

Originally committed as revision 930 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 77277835
......@@ -3767,8 +3767,17 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
}
s->low_delay= get_bits1(&s->gb);
if(get_bits1(&s->gb)){ /* vbv parameters */
printf("vbv parameters not supported\n");
return -1;
get_bits(&s->gb, 15); /* first_half_bitrate */
skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 15); /* latter_half_bitrate */
skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 15); /* first_half_vbv_buffer_size */
skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 3); /* latter_half_vbv_buffer_size */
get_bits(&s->gb, 11); /* first_half_vbv_occupancy */
skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 15); /* latter_half_vbv_occupancy */
skip_bits1(&s->gb); /* marker */
}
}else{
// set low delay flag only once so the smart? low delay detection wont be overriden
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册