summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-09-26 22:39:18 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-09-27 23:53:21 +0200
commit303439bc5f7ac6bbadc20d7ec2d7ee4fec656ead (patch)
treefc396c5187baaa5dd46f51df58f7e788177a8729 /libavformat/mpeg.c
parent476a77128a2557a619afeaf80a58c01eca1f9587 (diff)
lavf/mpeg: Support demuxing HEVC in mpeg-ps.
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 159ea41bec..d4369b49c2 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -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;