Commits

Chih-Hsuan Yen authored 716348fb76b
gpac: fix building on 10.10 or older

Ref: https://trac.macports.org/ticket/58979
No tags

multimedia/gpac/files/patch-no-hevc-yosemite.diff

Added
1 +diff --git modules/vtb_decode/vtb_decode.c modules/vtb_decode/vtb_decode.c
2 +index af0e9be78..176ce0e2e 100644
3 +--- modules/vtb_decode/vtb_decode.c
4 ++++ modules/vtb_decode/vtb_decode.c
5 +@@ -275,6 +275,7 @@ static GF_Err VTBDec_InitDecoder(VTBDec *ctx)
6 + }
7 + break;
8 +
9 ++#ifdef AVAILABLE_MAC_OS_X_VERSION_10_11_AND_LATER
10 + case GPAC_OTI_VIDEO_HEVC:
11 + if (gf_list_count(ctx->SPSs) && gf_list_count(ctx->PPSs) && gf_list_count(ctx->VPSs)) {
12 + s32 idx;
13 +@@ -426,6 +427,7 @@ static GF_Err VTBDec_InitDecoder(VTBDec *ctx)
14 + gf_free(dsi_data);
15 + }
16 + break;
17 ++#endif
18 +
19 + case GPAC_OTI_VIDEO_MPEG2_SIMPLE:
20 + case GPAC_OTI_VIDEO_MPEG2_MAIN:
21 +@@ -1548,8 +1550,10 @@ static const char *VTBDec_GetCodecName(GF_BaseDecoder *dec)
22 + switch (ctx->vtb_type) {
23 + case kCMVideoCodecType_H264:
24 + return ctx->is_hardware ? "VTB hardware AVC|H264" : "VTB software AVC|H264";
25 ++#ifdef AVAILABLE_MAC_OS_X_VERSION_10_11_AND_LATER
26 + case kCMVideoCodecType_HEVC:
27 + return ctx->is_hardware ? "VTB hardware HEVC" : "VTB software HEVC";
28 ++#endif
29 + case kCMVideoCodecType_MPEG2Video:
30 + return ctx->is_hardware ? "VTB hardware MPEG-2" : "VTB software MPEG-2";
31 + case kCMVideoCodecType_MPEG4Video:

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut