changeset 4126:bfc790ab375f libavformat

Change mpeg audio parser so it only sets frame_size, channels and bit_rate after it has a few valid frames. Fixes issue762
author michael
date Sun, 21 Dec 2008 23:50:16 +0000
parents df6989f6122b
children 6afa3d7c206e
files mp3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mp3.c	Sun Dec 21 20:56:30 2008 +0000
+++ b/mp3.c	Sun Dec 21 23:50:16 2008 +0000
@@ -383,7 +383,7 @@
 
         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;