From: Ukn Unknown <4031821+uknunknown@users.noreply.github.com> Date: Mon, 2 Jun 2025 02:09:46 +0000 (-0700) Subject: fix for video stream detection X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1288546386ae775200083ff0788dcdb8d783ce46;p=thirdparty%2Ftvheadend.git 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() --- 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;