vlc | branch: master | Francois Cartegnie <[email protected]> | Wed May 22 09:27:50 2019 +0200| [90cf563f1c7107ee3930bc5e105d6c3830f17252] | committer: Francois Cartegnie
fourcc: add AC4 fourcc is now registered > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90cf563f1c7107ee3930bc5e105d6c3830f17252 --- include/vlc_fourcc.h | 1 + modules/demux/mpeg/ts_psi.c | 4 ++-- src/misc/fourcc_list.h | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h index cb5d7dcb82..dddc1c6e2d 100644 --- a/include/vlc_fourcc.h +++ b/include/vlc_fourcc.h @@ -460,6 +460,7 @@ #define VLC_CODEC_ALS VLC_FOURCC('a','l','s',' ') #define VLC_CODEC_A52 VLC_FOURCC('a','5','2',' ') #define VLC_CODEC_EAC3 VLC_FOURCC('e','a','c','3') +#define VLC_CODEC_AC4 VLC_FOURCC('a','c','-','4') #define VLC_CODEC_DTS VLC_FOURCC('d','t','s',' ') /* Only used by outputs and filters */ #define VLC_CODEC_DTSHD VLC_FOURCC('d','t','s','h') diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c index cf3a9b6885..5e1a04b458 100644 --- a/modules/demux/mpeg/ts_psi.c +++ b/modules/demux/mpeg/ts_psi.c @@ -1279,8 +1279,8 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_stream_t *p_pes, case 0x0F: /* DTS Neural */ es_format_Change( p_fmt, AUDIO_ES, VLC_CODEC_DTS ); break; - case 0x15: /* AC4, unsupported for now */ - es_format_Change( p_fmt, AUDIO_ES, VLC_FOURCC('A', 'C', '-', '4') ); + case 0x15: /* Dolby AC-4 */ + es_format_Change( p_fmt, AUDIO_ES, VLC_CODEC_AC4 ); break; case 0x20: es_format_Change( p_fmt, SPU_ES, VLC_CODEC_TTML_TS ); diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h index 7ca588eed5..cfb81c95f3 100644 --- a/src/misc/fourcc_list.h +++ b/src/misc/fourcc_list.h @@ -1349,6 +1349,8 @@ static const staticentry_t p_list_audio[] = { B(VLC_CODEC_EAC3, "A/52 B Audio (aka E-AC3)"), A("eac3"), + B(VLC_CODEC_AC4, "AC-4 Digital Audio"), + /* DTS Audio */ B(VLC_CODEC_DTS, "DTS Audio"), A("dts "), _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
