diff --git a/src/video_compress/libavcodec.cpp b/src/video_compress/libavcodec.cpp index 3f64136fd..18e1f96f4 100644 --- a/src/video_compress/libavcodec.cpp +++ b/src/video_compress/libavcodec.cpp @@ -1584,8 +1584,10 @@ incomp_feature_warn(enum incomp_feature f, int req_val) return; } MSG(WARNING, - "Selected pixfmt has not 4:2:0 subsampling, " - "which is usually not supported by hw. decoders\n"); + "Selected pixfmt has subsampling %d:%d:%d and not 4:2:0, " + "which is usually not supported by hw. decoders\n", + (req_val / 1000), ((req_val / 100) % 10), + ((req_val / 10) % 10)); disable_opt = ":subs=420"; break; } diff --git a/src/video_decompress/libavcodec.c b/src/video_decompress/libavcodec.c index 92238db3b..b81257d8f 100644 --- a/src/video_decompress/libavcodec.c +++ b/src/video_decompress/libavcodec.c @@ -599,8 +599,9 @@ static enum AVPixelFormat get_format_callback(struct AVCodecContext *s, const en struct state_libavcodec_decompress *state = (struct state_libavcodec_decompress *) s->opaque; if (av_pixfmt_get_subsampling(s->sw_pix_fmt) != SUBS_420) { log_msg(LOG_LEVEL_WARNING, "[lavd] Hw. acceleration requested " - "but incoming video has not 4:2:0 subsampling, " - "which is usually not supported by hw. accelerators\n"); + "but incoming video has not 4:2:0 subsampling (format is %s), " + "which is usually not supported by hw. accelerators\n", + av_get_pix_fmt_name(s->sw_pix_fmt)); } const enum hw_accel_type forced_hwaccel = strlen(hwaccel) > 0 ? hw_accel_from_str(hwaccel)