changeset 375:e9fe23b3007f libavformat

channel count & samplerate fix
author michael
date Mon, 08 Mar 2004 02:38:43 +0000
parents 9afd09aa6ff5
children 20f644245408
files flvdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Sat Mar 06 11:07:37 2004 +0000
+++ b/flvdec.c	Mon Mar 08 02:38:43 2004 +0000
@@ -115,6 +115,10 @@
     }
     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;