diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-08 02:38:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-08 02:38:43 +0000 |
commit | 6ed08157cad67b9b2c2e0cb90fe4af082df04919 (patch) | |
tree | 40430506cfbd0b1b9b6ca50447505e3b6d5371b4 /libavformat | |
parent | 01456e8e86727307ce4332d980c76aaf7157f514 (diff) | |
download | ffmpeg-6ed08157cad67b9b2c2e0cb90fe4af082df04919.tar.gz |
channel count & samplerate fix
Originally committed as revision 2858 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 8b55e6b324..f636791a4e 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; |