summaryrefslogtreecommitdiffstats
path: root/libhb/bd.c
diff options
context:
space:
mode:
authorPetri Hintukainen <[email protected]>2018-12-25 15:06:30 +0200
committerJohn Stebbins <[email protected]>2019-01-20 11:07:30 -0800
commit3b31b3df72d5a666a5445444ff0f03659a44cd33 (patch)
treed1bcb3c004ba9ffac45277dc4366aef2c1c55932 /libhb/bd.c
parent7dcbdcce4b33473f679594403b98bdda330b1b49 (diff)
bd: Add support for UHD discs
Fixes #1301
Diffstat (limited to 'libhb/bd.c')
-rw-r--r--libhb/bd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/bd.c b/libhb/bd.c
index 8ec010c9f..39178f6b8 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -373,6 +373,7 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
bdvideo->coding_type == BLURAY_STREAM_TYPE_VIDEO_MPEG2 ? "MPEG2" :
bdvideo->coding_type == BLURAY_STREAM_TYPE_VIDEO_VC1 ? "VC-1" :
bdvideo->coding_type == BLURAY_STREAM_TYPE_VIDEO_H264 ? "H.264" :
+ bdvideo->coding_type == BLURAY_STREAM_TYPE_VIDEO_HEVC ? "HEVC" :
"Unknown",
bdvideo->format == BLURAY_VIDEO_FORMAT_480I ? "480i" :
bdvideo->format == BLURAY_VIDEO_FORMAT_576I ? "576i" :
@@ -381,6 +382,7 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
bdvideo->format == BLURAY_VIDEO_FORMAT_720P ? "720p" :
bdvideo->format == BLURAY_VIDEO_FORMAT_1080P ? "1080p" :
bdvideo->format == BLURAY_VIDEO_FORMAT_576P ? "576p" :
+ bdvideo->format == BLURAY_VIDEO_FORMAT_2160P ? "2160p" :
"Unknown"
);
@@ -402,6 +404,11 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
title->video_codec_param = AV_CODEC_ID_H264;
break;
+ case BLURAY_STREAM_TYPE_VIDEO_HEVC:
+ title->video_codec = WORK_DECAVCODECV;
+ title->video_codec_param = AV_CODEC_ID_HEVC;
+ break;
+
default:
hb_log( "scan: unknown video codec (0x%x)",
bdvideo->coding_type );