mpegts: Add HEVC definitions
authorFemi Adeyemi-Ejeye <olugbone@gmail.com>
Wed, 30 Apr 2014 15:58:09 +0000 (16:58 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 5 Aug 2014 09:30:50 +0000 (11:30 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mpegts.h
libavformat/mpegtsenc.c

index fafe98f..7dbbf8d 100644 (file)
@@ -52,6 +52,7 @@
 #define STREAM_TYPE_AUDIO_AAC_LATM  0x11
 #define STREAM_TYPE_VIDEO_MPEG4     0x10
 #define STREAM_TYPE_VIDEO_H264      0x1b
+#define STREAM_TYPE_VIDEO_HEVC      0x24
 #define STREAM_TYPE_VIDEO_CAVS      0x42
 #define STREAM_TYPE_VIDEO_VC1       0xea
 #define STREAM_TYPE_VIDEO_DIRAC     0xd1
index 28ad6ea..17e44d9 100644 (file)
@@ -251,6 +251,9 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
         case AV_CODEC_ID_H264:
             stream_type = STREAM_TYPE_VIDEO_H264;
             break;
+        case AV_CODEC_ID_HEVC:
+            stream_type = STREAM_TYPE_VIDEO_HEVC;
+            break;
         case AV_CODEC_ID_CAVS:
             stream_type = STREAM_TYPE_VIDEO_CAVS;
             break;