]> granicus.if.org Git - handbrake/commitdiff
bd: Add support for UHD discs
authorPetri Hintukainen <phintuka@users.sourceforge.net>
Tue, 25 Dec 2018 13:06:30 +0000 (15:06 +0200)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 20 Jan 2019 19:07:30 +0000 (11:07 -0800)
Fixes #1301

libhb/bd.c

index 8ec010c9fa3456e7137a17c6727632eab913aa28..39178f6b8f1fca3d38a6f18749aa2658532aef25 100644 (file)
@@ -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 );