You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vocdec: Take channel count into account when calculating bit rate.
Fixes trac issue #343. Carl Eugen Hoyos actually made a patch first, but I missed it because trac does not send notification emails when an attachment is added. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
@@ -142,7 +142,7 @@ voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dec->bit_rate = dec->sample_rate * dec->bits_per_coded_sample;
|
dec->bit_rate = dec->sample_rate * dec->channels * dec->bits_per_coded_sample;
|
||||||
|
|
||||||
if (max_size <= 0)
|
if (max_size <= 0)
|
||||||
max_size = 2048;
|
max_size = 2048;
|
||||||
|
Reference in New Issue
Block a user