aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ac3dec.c
diff options
context:
space:
mode:
authorRuben Gonzalez <rgonzalez@fluendo.com>2022-06-23 14:14:36 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-08 16:19:38 +0200
commit2d8d7f859216dbddcb72ad2cba9d5e8489304e32 (patch)
treeb44ffb8c2c5ec94a461290f9c8a2787c48e7c38b /libavformat/ac3dec.c
parent68e017c487631b7c32e65ed40abe94073f9d293c (diff)
downloadffmpeg-2d8d7f859216dbddcb72ad2cba9d5e8489304e32.tar.gz
avformat: allow .ec3 as extension for raw E-AC-3 stream
In addition to .eac3, .ec3 is also commonly used by people to name raw E-AC-3 streams. Enables automatic recognition of the eac3 format for the .ac3 extension. For instance Dolby Digital Plus software only support files with .ec3. Files with .eac3 are not supported. Check issue #18 in the public dlb_mp4base repository from DolbyLaboratories. Signed-off-by: Ruben Gonzalez <rgonzalez@fluendo.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/ac3dec.c')
-rw-r--r--libavformat/ac3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c
index 51461befd8..989d126a81 100644
--- a/libavformat/ac3dec.c
+++ b/libavformat/ac3dec.c
@@ -131,7 +131,7 @@ const AVInputFormat ff_eac3_demuxer = {
.read_header = ff_raw_audio_read_header,
.read_packet = ff_raw_read_partial_packet,
.flags = AVFMT_GENERIC_INDEX,
- .extensions = "eac3",
+ .extensions = "eac3,ec3",
.raw_codec_id = AV_CODEC_ID_EAC3,
.priv_data_size = sizeof(FFRawDemuxerContext),
.priv_class = &ff_raw_demuxer_class,