From b8c0db99816736bc7fff218e32a78792fae0291c Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 11 Oct 2009 11:56:53 +0000 Subject: [PATCH] Allow autodetection of E-AC3. Originally committed as revision 20206 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 7575b2f..1b23a00 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -329,6 +329,9 @@ static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st, AVProbeDa } else if (!strcmp(fmt->name, "ac3")) { st->codec->codec_id = CODEC_ID_AC3; st->codec->codec_type = CODEC_TYPE_AUDIO; + } else if (!strcmp(fmt->name, "eac3")) { + st->codec->codec_id = CODEC_ID_EAC3; + st->codec->codec_type = CODEC_TYPE_AUDIO; } else if (!strcmp(fmt->name, "mpegvideo")) { st->codec->codec_id = CODEC_ID_MPEG2VIDEO; st->codec->codec_type = CODEC_TYPE_VIDEO; -- 2.7.4