[FFmpeg-devel] look for valid mpeg frame (was skip multiple id3v2 headers)

David Byron dbyron
Thu Sep 23 20:26:25 CEST 2010


> > Is there a way to find out what subset of each packet is
> > audio?  avcodec_decode_audio3 doesn't seem to help in
> > this case as it returns -1 on
> 
> a patch for the mpeg audio decode frame code is welcome so
> it searches for a valid frame header

Like this?  This gets avcodec_decode_audio3 to decode the mpeg frame in
bad_id3v2_with_one_frame.mp3 posted earlier (with no change to the id3v2
parsing code).

-DB



More information about the ffmpeg-devel mailing list