summaryrefslogtreecommitdiff
path: root/src/render/queue_libplacebo.c
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-07-02 18:31:31 -0400
committerAndrew Opalach <andrew@akon.city> 2026-07-02 18:31:31 -0400
commitf51b7c35c95a5c6ad50c9fc430780e6953f37dad (patch)
treeca7557e147e918fda1284cc1a338c98b9d7e86f8 /src/render/queue_libplacebo.c
parent38cce5e94a10e5420e4685bbe5ebb1aade6d522f (diff)
downloadcamu-f51b7c35c95a5c6ad50c9fc430780e6953f37dad.tar.gz
camu-f51b7c35c95a5c6ad50c9fc430780e6953f37dad.tar.bz2
camu-f51b7c35c95a5c6ad50c9fc430780e6953f37dad.zip
Fix FFmpegless build
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/render/queue_libplacebo.c')
-rw-r--r--src/render/queue_libplacebo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/queue_libplacebo.c b/src/render/queue_libplacebo.c
index f2a2898..57d60f6 100644
--- a/src/render/queue_libplacebo.c
+++ b/src/render/queue_libplacebo.c
@@ -111,8 +111,8 @@ static bool map_frame(pl_gpu gpu, pl_tex *tex, const struct pl_source_frame *src
}
if (frame->format == CAMU_PIXEL_FORMAT_GREY) {
- out_frame->repr.sys = pl_system_from_av(AVCOL_SPC_BT470BG);
- out_frame->repr.levels = pl_levels_from_av(AVCOL_RANGE_JPEG);
+ out_frame->repr.sys = PL_COLOR_SYSTEM_BT_601; // pl_system_from_av(AVCOL_SPC_BT470BG)
+ out_frame->repr.levels = PL_COLOR_LEVELS_FULL; // pl_levels_from_av(AVCOL_RANGE_JPEG)
} else {
out_frame->repr = pl_color_repr_unknown;
}
@@ -410,6 +410,7 @@ static void queue_lp_push_av_frame(struct camu_frame_queue *queue, AVFrame *fram
}
#endif
+#ifdef CAMU_HAVE_SUBTITLES
static bool convert_subtitle(struct camu_frame_queue_lp *lq, AVPacket *pkt)
{
AVSubtitle sub = { 0 };
@@ -429,6 +430,7 @@ static bool convert_subtitle(struct camu_frame_queue_lp *lq, AVPacket *pkt)
}
return false;
}
+#endif
static void queue_lp_push_subtitle(struct camu_frame_queue *queue, struct camu_codec_packet *packet)
{