[FFmpeg-devel] [PATCH] Remove noise message from MP3 decoder

Chris Rankin rankincj at yahoo.com
Wed Sep 7 14:04:20 CEST 2011

 > I believe the patch is theoretically correct, but I wonder in what situation
 > you hit the problem. It may be that the multiple frames in a packet is
 > caused by a demuxer problem. Could you provide a sample file showing the
 > issue?


The application that has the problem is xine, not ffmpeg or ffplay. I've noticed 
that ffplay seems to work around misbehaving codecs by explicitly parsing the 
individual frames out of each AVPacket *before* calling avcodec_decode_audio3(), 
which frankly seems a little strange to me. The documentation certainly implies 
that it's permissible to keep calling avcodec_decode_audio3() until all the 
input data has been consumed:

  * Some decoders may support multiple frames in a single AVPacket, such
  * decoders would then just decode the first frame. In this case,
  * avcodec_decode_audio3 has to be called again with an AVPacket that contains
  * the remaining data in order to decode the second frame etc.

However, I've attached a sample .MOV file to the following defect:


It's only the first few seconds of the original trailer, but it's enough to 
demonstrate the problem. (The full trailer is about 40 MB.)


More information about the ffmpeg-devel mailing list