[FFmpeg-devel] [PATCH] Fix MP2 audio detection for MPEGPS streams

Baptiste Coudurier baptiste.coudurier
Sun Jun 7 20:45:48 CEST 2009


Taylor Ralph wrote:
> I occasionally have an MPEGPS stream with MP2 audio that doesn't have audio due to the audio codec being misdetected as ADPCM_ADX. 
> I've got a one-line patch that fixes the false detection when libavformat/mpeg.c tries to determine if the audio in an MPEGPS stream is MP2 or ADPCM_ADX. Basically a partial match of the string "Sofdec" will cause the code to select ADPCM_ADX when it is actually MP2. I've opened a ticket here with a full explanation:
> http://roundup.ffmpeg.org/roundup/ffmpeg/issue1149
> The patch is here:
> http://roundup.ffmpeg.org/roundup/ffmpeg/file346/ffmpeg_fix_mp2_detect_new.diff
> I can also provide a sample if someone would like it.

A sample is definitely welcome.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list