Skip to content

Commit 1288546

Browse files
uknunknownFlole998
authored andcommitted
fix for video stream detection
PR #1772 is not covering all video streams. The proper implementation is to use the macro SCT_ISVIDEO()
1 parent 8d46935 commit 1288546

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/transcoding/transcode/stream.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tvh_stream_setup(TVHStream *self, TVHCodecProfile *profile, tvh_ssc_t *ssc)
6666
#if ENABLE_MMAL | ENABLE_NVENC | ENABLE_VAAPI
6767
int hwaccel = -1;
6868
int hwaccel_details = -1;
69-
if (ssc->es_type == AVMEDIA_TYPE_VIDEO) {
69+
if (SCT_ISVIDEO(ssc->es_type)) {
7070
if (((hwaccel = tvh_codec_profile_video_get_hwaccel(profile)) < 0) ||
7171
((hwaccel_details = tvh_codec_profile_video_get_hwaccel_details(profile)) < 0)) {
7272
return -1;

0 commit comments

Comments
 (0)