[vlc-commits] Support hevc ts demultiplexing
Denis Charmet
git at videolan.org
Wed Feb 5 20:33:19 CET 2014
vlc | branch: master | Denis Charmet <typx at dinauz.org> | Wed Feb 5 20:21:59 2014 +0100| [552411c16c014b5502399d9ec5b375936a0358df] | committer: Denis Charmet
Support hevc ts demultiplexing
Beware the ts with hevc muxed as private PES seem to have PCR issue and should be played in case of problem with --no-ts-trust-pcr to avoid drops.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=552411c16c014b5502399d9ec5b375936a0358df
---
modules/demux/ts.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index f6c6fef..0d85b8e 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2436,6 +2436,9 @@ static void PIDFillFormat( ts_es_t *es, int i_stream_type )
case 0x1B: /* H264 <- check transport syntax/needed descriptor */
es_format_Init( fmt, VIDEO_ES, VLC_CODEC_H264 );
break;
+ case 0x24: /* HEVC */
+ es_format_Init( fmt, VIDEO_ES, VLC_CODEC_HEVC );
+ break;
case 0x42: /* CAVS (Chinese AVS) */
es_format_Init( fmt, VIDEO_ES, VLC_CODEC_CAVS );
break;
@@ -3672,6 +3675,11 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_pid_t *pid,
p_fmt->b_packetized = true;
p_fmt->i_codec = VLC_CODEC_302M;
}
+ else if( PMTEsHasRegistration( p_demux, p_es, "HEVC" ) )
+ {
+ p_fmt->i_cat = VIDEO_ES;
+ p_fmt->i_codec = VLC_CODEC_HEVC;
+ }
else
{
/* Subtitle/Teletext/VBI fallbacks */
More information about the vlc-commits
mailing list