mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
channel count & samplerate fix
Originally committed as revision 2858 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
01456e8e86
commit
6ed08157ca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user