]> git.sesse.net Git - vlc/commitdiff
Avformat demuxing: use bit_rate value
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Aug 2009 18:37:05 +0000 (20:37 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Aug 2009 18:37:05 +0000 (20:37 +0200)
This sets the fmt.i_bitrate value and fixes decoding of TwinVQ samples. Thanks a lot to Vitor for pointing where the error was.

modules/demux/avformat/demux.c

index b416920d5abf5bc1ac236e8c2d5fcb4de2a1841c..a1fdfd396125feb2b3a261f670c2e8a8e17b26bf 100644 (file)
@@ -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)