Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > main-updates-src > by-pkgid > 498a0f595bc179432c2ff3fbf6872aba > files > 11

ffmpeg-0.6.5-0.1mdv2010.2.src.rpm

--- a/libavcodec/mpegaudiodec.c.orig	2009-08-31 23:19:15.000000000 -0700
+++ b/libavcodec/mpegaudiodec.c	2009-08-31 23:20:05.000000000 -0700
@@ -2294,8 +2294,10 @@
         *data_size = out_size;
         avctx->sample_rate = s->sample_rate;
         //FIXME maybe move the other codec info stuff from above here too
-    }else
+    }else{
         av_log(avctx, AV_LOG_DEBUG, "Error while decoding MPEG audio frame.\n"); //FIXME return -1 / but also return the number of bytes consumed
+        *data_size = 0;
+    }
     s->frame_size = 0;
     return buf_size;
 }