diff --git a/src/video_decompress/libavcodec.c b/src/video_decompress/libavcodec.c index 1385dec4b..bc7ea1758 100644 --- a/src/video_decompress/libavcodec.c +++ b/src/video_decompress/libavcodec.c @@ -1156,7 +1156,8 @@ static int libavcodec_decompress_get_priority(codec_t compression, struct pixfmt PRIO_LOWER = 800, PRIO_LO = 900, }; - if (hw_accel_to_ug_pixfmt(internal.accel_type) == ugc) { + if (internal.accel_type != HWACCEL_NONE && + hw_accel_to_ug_pixfmt(internal.accel_type) == ugc) { return PRIO_HI; }