[vlc-devel] commit: E-AC3 support in mkv files. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Tue Sep 9 20:27:58 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep 9 11:21:40 2008 -0700| [bf49ec236dfa0080888c8fbf5d127453fff19b2b] | committer: Jean-Baptiste Kempf
E-AC3 support in mkv files.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf49ec236dfa0080888c8fbf5d127453fff19b2b
---
NEWS | 1 +
modules/codec/avcodec/fourcc.h | 5 +++++
modules/demux/mkv.cpp | 4 ++++
3 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/NEWS b/NEWS
index 5cd8309..2e135da 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Inputs:
Decoders:
* AES3 (SMPTE 302M) support
+ * E-AC3 (A/52b) support
Stream output:
* Restored the old mpeg2 transrating module.
diff --git a/modules/codec/avcodec/fourcc.h b/modules/codec/avcodec/fourcc.h
index f031449..3dc9341 100644
--- a/modules/codec/avcodec/fourcc.h
+++ b/modules/codec/avcodec/fourcc.h
@@ -859,6 +859,11 @@ static const struct
{ VLC_FOURCC('a','5','2','b'), CODEC_ID_AC3, /* VLC specific hack */
AUDIO_ES, "A52 Audio (aka AC3)" },
+#if LIBAVCODEC_VERSION_INT >= ((52<<16)+(0<<8)+0)
+ { VLC_FOURCC('e','a','c','3'), CODEC_ID_EAC3,
+ AUDIO_ES, "A/52 B Audio (aka E-AC3)" },
+#endif
+
/* DTS Audio */
{ VLC_FOURCC('d','t','s',' '), CODEC_ID_DTS,
AUDIO_ES, "DTS Audio" },
diff --git a/modules/demux/mkv.cpp b/modules/demux/mkv.cpp
index 1034cf6..1596cc1 100644
--- a/modules/demux/mkv.cpp
+++ b/modules/demux/mkv.cpp
@@ -2410,6 +2410,10 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
{
tracks[i_track]->fmt.i_codec = VLC_FOURCC( 'a', '5', '2', ' ' );
}
+ else if( !strcmp( tracks[i_track]->psz_codec, "A_EAC3" ) )
+ {
+ tracks[i_track]->fmt.i_codec = VLC_FOURCC( 'e', 'a', 'c', '3' );
+ }
else if( !strcmp( tracks[i_track]->psz_codec, "A_DTS" ) )
{
tracks[i_track]->fmt.i_codec = VLC_FOURCC( 'd', 't', 's', ' ' );
More information about the vlc-devel
mailing list