Commit 8ac692c1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avformat demuxing: use bit_rate value

This sets the fmt.i_bitrate value and fixes decoding of TwinVQ samples. Thanks a lot to Vitor for pointing where the error was.
parent 285861a1
......@@ -234,6 +234,7 @@ int OpenDemux( vlc_object_t *p_this )
{
case CODEC_TYPE_AUDIO:
es_format_Init( &fmt, AUDIO_ES, fcc );
fmt.i_bitrate = cc->bit_rate;
fmt.audio.i_channels = cc->channels;
fmt.audio.i_rate = cc->sample_rate;
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment