[FFmpeg-cvslog] avformat/mpegtsenc: fix HEVC MPEG TS stream type

olugbone git at videolan.org
Tue Mar 4 16:08:11 CET 2014


ffmpeg | branch: master | olugbone <olugbone at gmail.com> | Mon Mar  3 19:32:41 2014 +0000| [b2880a3de9e3e160c47c069abcc8cb60015407b6] | committer: Michael Niedermayer

avformat/mpegtsenc: fix HEVC MPEG TS stream type

Allowing HEVC video using TS stream type 0x24

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2880a3de9e3e160c47c069abcc8cb60015407b6
---

 libavformat/mpegts.h    |    1 +
 libavformat/mpegtsenc.c |    3 +++
 2 files changed, 4 insertions(+)

diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
index 269c23b..4d702a2 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 //Definition of 0x24 HEVC video MPEG TS stream type
 #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 6f075c5c..09d1b9e 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -292,6 +292,9 @@ static int 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;



More information about the ffmpeg-cvslog mailing list