diff options
author | Femi Adeyemi-Ejeye <olugbone@gmail.com> | 2014-04-30 16:58:09 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-08-05 11:30:50 +0200 |
commit | 2601a9447efb778930b01ac58d2cc1d02498db4e (patch) | |
tree | 00bd7b99b1b860a8210a3bfe62f6b12dc2f341b0 | |
parent | 89616408e38ac7257e36976723df0e23d6ee1157 (diff) | |
download | ffmpeg-2601a9447efb778930b01ac58d2cc1d02498db4e.tar.gz |
mpegts: Add HEVC definitions
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavformat/mpegts.h | 1 | ||||
-rw-r--r-- | libavformat/mpegtsenc.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h index fafe98fcf8..7dbbf8dfb0 100644 --- a/libavformat/mpegts.h +++ b/libavformat/mpegts.h @@ -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 diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 28ad6ea296..17e44d97d0 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -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; |