[FFmpeg-devel] [PATCH]Allow decoding of eac3 in mpegts
Baptiste Coudurier
baptiste.coudurier
Sat Oct 10 13:46:36 CEST 2009
Hi Carl Eugen,
On 10/10/09 4:10 AM, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch allows audio decoding of
> incoming/Dependent_substream_decoding_sample.m2ts (and playback with
> mplayer -demuxer lavf).
>
> Please comment, Carl Eugen
>
>
> patcheac3ts.diff
>
>
> Index: libavformat/mpegts.c
> ===================================================================
> --- libavformat/mpegts.c (revision 20197)
> +++ libavformat/mpegts.c (working copy)
> @@ -512,6 +512,7 @@
> { 0x81, CODEC_TYPE_AUDIO, CODEC_ID_AC3 },
> { 0x82, CODEC_TYPE_AUDIO, CODEC_ID_DTS },
> { 0x83, CODEC_TYPE_AUDIO, CODEC_ID_TRUEHD },
> + { 0x84, CODEC_TYPE_AUDIO, CODEC_ID_EAC3 },
> { 0x90, CODEC_TYPE_SUBTITLE, CODEC_ID_HDMV_PGS_SUBTITLE },
> { 0 },
> };
>
I have no objection to the patch. We might also want to probe it
sucessfully.
Can you please test that set_codec_from_probe_data returns eac3 raw
demuxer ? It could then be enabled.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list