1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

vbv parameter parsing (more skiping actually ;) )

Originally committed as revision 930 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2002-09-12 15:02:47 +00:00
parent 7727783512
commit 33cbc6052a

View File

@@ -3767,8 +3767,17 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
} }
s->low_delay= get_bits1(&s->gb); s->low_delay= get_bits1(&s->gb);
if(get_bits1(&s->gb)){ /* vbv parameters */ if(get_bits1(&s->gb)){ /* vbv parameters */
printf("vbv parameters not supported\n"); get_bits(&s->gb, 15); /* first_half_bitrate */
return -1; 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{ }else{
// set low delay flag only once so the smart? low delay detection wont be overriden // set low delay flag only once so the smart? low delay detection wont be overriden