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

Taylor Ralph tralph11
Sun Jun 7 20:44:36 CEST 2009


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.

Any help would be greatly appreciated.

Thanks.

--
Taylor


      



More information about the ffmpeg-devel mailing list