summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-12-21 23:50:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-12-21 23:50:16 +0000
commitc96bd21227e594856f8fd0610fd213b002056383 (patch)
treeab1101185b5e2e6c76c3124296dd34c2a9bf1284 /libavformat
parentaf4c0bcb6ed6f3d679dddfe9c4fd4f73f84fcabc (diff)
Change mpeg audio parser so it only sets frame_size, channels and bit_rate
after it has a few valid frames. Fixes issue762 Originally committed as revision 16259 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index 407d4f00d7..0f3a5fefac 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -383,7 +383,7 @@ static int mp3_read_probe(AVProbeData *p)
for(frames = 0; buf2 < end; frames++) {
header = AV_RB32(buf2);
- fsize = ff_mpa_decode_header(&avctx, header, &sample_rate);
+ fsize = ff_mpa_decode_header(&avctx, header, &sample_rate, &sample_rate, &sample_rate, &sample_rate);
if(fsize < 0)
break;
buf2 += fsize;