From 1288546386ae775200083ff0788dcdb8d783ce46 Mon Sep 17 00:00:00 2001 From: Ukn Unknown <4031821+uknunknown@users.noreply.github.com> Date: Sun, 1 Jun 2025 19:09:46 -0700 Subject: [PATCH] fix for video stream detection PR https://github.com/tvheadend/tvheadend/pull/1772 is not covering all video streams. The proper implementation is to use the macro SCT_ISVIDEO() --- src/transcoding/transcode/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transcoding/transcode/stream.c b/src/transcoding/transcode/stream.c index 79f4ae8fb..ff10fdb59 100644 --- a/src/transcoding/transcode/stream.c +++ b/src/transcoding/transcode/stream.c @@ -66,7 +66,7 @@ tvh_stream_setup(TVHStream *self, TVHCodecProfile *profile, tvh_ssc_t *ssc) #if ENABLE_MMAL | ENABLE_NVENC | ENABLE_VAAPI int hwaccel = -1; int hwaccel_details = -1; - if (ssc->es_type == AVMEDIA_TYPE_VIDEO) { + if (SCT_ISVIDEO(ssc->es_type)) { if (((hwaccel = tvh_codec_profile_video_get_hwaccel(profile)) < 0) || ((hwaccel_details = tvh_codec_profile_video_get_hwaccel_details(profile)) < 0)) { return -1; -- 2.47.2