]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix for video stream detection
authorUkn Unknown <4031821+uknunknown@users.noreply.github.com>
Mon, 2 Jun 2025 02:09:46 +0000 (19:09 -0700)
committerFlole <Flole998@users.noreply.github.com>
Mon, 2 Jun 2025 05:00:20 +0000 (07:00 +0200)
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

index 79f4ae8fb0365902cae00b38de9a7c28d6cba03d..ff10fdb598b3e731fdce6e931f64b84a5dd04d38 100644 (file)
@@ -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;