OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01456e8
)
channel count & samplerate fix
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 8 Mar 2004 02:38:43 +0000
(
02:38
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 8 Mar 2004 02:38:43 +0000
(
02:38
+0000)
Originally committed as revision 2858 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flvdec.c
b/libavformat/flvdec.c
index
8b55e6b
..
f636791
100644
(file)
--- 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;