[FFmpeg-devel] [PATCH] vocdec: Take channel count into account when calculating bit rate.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Aug 27 13:49:26 CEST 2011
Fixes trac issue #343.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
libavformat/vocdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index fd03c5b..fed7c6d 100644
--- a/libavformat/vocdec.c
+++ b/libavformat/vocdec.c
@@ -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)
max_size = 2048;
--
1.7.5.4
More information about the ffmpeg-devel
mailing list