[SCM] libav/experimental: channel count & samplerate fix

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:39:28 UTC 2013


The following commit has been merged in the experimental branch:
commit 6ed08157cad67b9b2c2e0cb90fe4af082df04919
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Mon Mar 8 02:38:43 2004 +0000

    channel count & samplerate fix
    
    Originally committed as revision 2858 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 8b55e6b..f636791 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -115,6 +115,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
     }
     goto skip;
  found:
+    if(type == 8){
+        st->codec.channels = (flags&1)+1;
+        st->codec.sample_rate = (44100<<((flags>>2)&3))>>3;
+    }
 
     if (av_new_packet(pkt, size) < 0)
         return -EIO;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list