Ticket #343: patchvocbitrate.diff

File patchvocbitrate.diff, 463 bytes (added by cehoyos, 5 years 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) 
    142142        } 
    143143    } 
    144144 
    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; 
    146146 
    147147    if (max_size <= 0) 
    148148        max_size = 2048;