[vlc-commits] Support hevc ts demultiplexing

Denis Charmet git at videolan.org
Wed Feb 5 22:39:15 CET 2014


vlc | branch: master | Denis Charmet <typx at dinauz.org> | Wed Feb  5 20:21:59 2014 +0100| [9911a463a6b62f8a0214fc64d9ef8cf2800c17b0] | committer: Rémi Denis-Courmont

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=9911a463a6b62f8a0214fc64d9ef8cf2800c17b0
---

 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