Commit 0e3a4da1 authored by Piotr Bandurski's avatar Piotr Bandurski Committed by Michael Niedermayer

yop: set video bit rate

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a8ebb774
......@@ -106,6 +106,8 @@ static int yop_read_header(AVFormatContext *s)
yop->palette_size = video_dec->extradata[0] * 3 + 4;
yop->audio_block_length = AV_RL16(video_dec->extradata + 6);
video_dec->bit_rate = 8 * (yop->frame_size - yop->audio_block_length) * frame_rate;
// 1840 samples per frame, 1 nibble per sample; hence 1840/2 = 920
if (yop->audio_block_length < 920 ||
yop->audio_block_length + yop->palette_size >= yop->frame_size) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment