Browse Source

mpegts: Add HEVC definitions

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.4
Femi Adeyemi-Ejeye Luca Barbato 11 years ago
parent
commit
2601a9447e
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      libavformat/mpegts.h
  2. +3
    -0
      libavformat/mpegtsenc.c

+ 1
- 0
libavformat/mpegts.h View 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


+ 3
- 0
libavformat/mpegtsenc.c View 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;


Loading…
Cancel
Save