lavf/mpeg: Support demuxing HEVC in mpeg-ps.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Wed, 26 Sep 2018 20:39:18 +0000 (22:39 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 27 Sep 2018 21:53:21 +0000 (23:53 +0200)
libavformat/mpeg.c
libavformat/mpeg.h

index 159ea41..d4369b4 100644 (file)
@@ -544,6 +544,9 @@ redo:
         } else if (es_type == STREAM_TYPE_VIDEO_H264) {
             codec_id = AV_CODEC_ID_H264;
             type     = AVMEDIA_TYPE_VIDEO;
+        } else if (es_type == STREAM_TYPE_VIDEO_HEVC) {
+            codec_id = AV_CODEC_ID_HEVC;
+            type     = AVMEDIA_TYPE_VIDEO;
         } else if (es_type == STREAM_TYPE_AUDIO_AC3) {
             codec_id = AV_CODEC_ID_AC3;
             type     = AVMEDIA_TYPE_AUDIO;
index 617e36c..b635295 100644 (file)
@@ -55,6 +55,7 @@
 #define STREAM_TYPE_AUDIO_AAC       0x0f
 #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_AUDIO_AC3       0x81