Commit 6ed08157 authored by Michael Niedermayer's avatar Michael Niedermayer

channel count & samplerate fix

Originally committed as revision 2858 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 01456e8e
......@@ -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;
......
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