OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd7a9e
)
vocdec: Take channel count into account when calculating bit rate.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 27 Aug 2011 11:48:38 +0000
(13:48 +0200)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 27 Aug 2011 20:12:51 +0000
(22:12 +0200)
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>
libavformat/vocdec.c
patch
|
blob
|
history
diff --git
a/libavformat/vocdec.c
b/libavformat/vocdec.c
index
fd03c5b
..
fed7c6d
100644
(file)
--- 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;