Ticket #343: patchvocbitrate.diff
| File patchvocbitrate.diff, 463 bytes (added by cehoyos, 21 months ago) |
|---|
-
libavformat/vocdec.c
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c index fd03c5b..d68465d 100644
a b voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size) 142 142 } 143 143 } 144 144 145 dec->bit_rate = dec->sample_rate * dec->bits_per_coded_sample ;145 dec->bit_rate = dec->sample_rate * dec->bits_per_coded_sample * dec->channels; 146 146 147 147 if (max_size <= 0) 148 148 max_size = 2048;
