From 07292745b54ee9374a498825b956d50fbe3798e4 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 2 Mar 2025 00:12:05 +0100 Subject: [PATCH 34/40] avcodec/speedhqenc: Don't log to the private context Signed-off-by: Andreas Rheinhardt --- libavcodec/speedhqenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/speedhqenc.c b/libavcodec/speedhqenc.c index ac40fd6e75..dda5444434 100644 --- a/libavcodec/speedhqenc.c +++ b/libavcodec/speedhqenc.c @@ -100,13 +100,13 @@ av_cold int ff_speedhq_encode_init(MpegEncContext *s) static AVOnce init_static_once = AV_ONCE_INIT; if (s->width > 65500 || s->height > 65500) { - av_log(s, AV_LOG_ERROR, "SpeedHQ does not support resolutions above 65500x65500\n"); + av_log(s->avctx, AV_LOG_ERROR, "SpeedHQ does not support resolutions above 65500x65500\n"); return AVERROR(EINVAL); } // border is not implemented correctly at the moment, see ticket #10078 if (s->width % 16) { - av_log(s, AV_LOG_ERROR, "width must be a multiple of 16\n"); + av_log(s->avctx, AV_LOG_ERROR, "width must be a multiple of 16\n"); return AVERROR_PATCHWELCOME; } -- 2.45.2