[vlc-devel] commit: Avformat demuxing: use bit_rate value (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Aug 27 20:38:19 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 27 20:37:05 2009 +0200| [8ac692c1227d20cbd34344074c30e3f87d444b6c] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ac692c1227d20cbd34344074c30e3f87d444b6c
---

 modules/demux/avformat/demux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index b416920..a1fdfd3 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -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)




More information about the vlc-devel mailing list