Commit 94c2ede0 authored by michael's avatar michael

channel count & samplerate fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2858 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8c46160e
...@@ -115,6 +115,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -115,6 +115,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
} }
goto skip; goto skip;
found: 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) if (av_new_packet(pkt, size) < 0)
return -EIO; 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