diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-28 21:30:05 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-01 01:02:53 +0200 |
commit | 08dd036b9fc79f79cbe64245b06db903428b3bde (patch) | |
tree | 9bc539759753f8469668f4a2393dc240a8a8d323 /libavcodec/roqvideo.c | |
parent | 7d1401ed02040f6b4ecc429c3b21c96ec86890e9 (diff) | |
download | ffmpeg-08dd036b9fc79f79cbe64245b06db903428b3bde.tar.gz |
avcodec/roqvideo: Use void*, not AVCodecContext* for logctx
Also stop setting the field once per encode-frame.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/roqvideo.c')
-rw-r--r-- | libavcodec/roqvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/roqvideo.c b/libavcodec/roqvideo.c index f9a3c8e083..ca8c8de967 100644 --- a/libavcodec/roqvideo.c +++ b/libavcodec/roqvideo.c @@ -111,13 +111,13 @@ static inline void apply_motion_generic(RoqContext *ri, int x, int y, int deltax /* check MV against frame boundaries */ if ((mx < 0) || (mx > ri->width - sz) || (my < 0) || (my > ri->height - sz)) { - av_log(ri->avctx, AV_LOG_ERROR, "motion vector out of bounds: MV = (%d, %d), boundaries = (0, 0, %d, %d)\n", + av_log(ri->logctx, AV_LOG_ERROR, "motion vector out of bounds: MV = (%d, %d), boundaries = (0, 0, %d, %d)\n", mx, my, ri->width, ri->height); return; } if (!ri->last_frame->data[0]) { - av_log(ri->avctx, AV_LOG_ERROR, "Invalid decode type. Invalid header?\n"); + av_log(ri->logctx, AV_LOG_ERROR, "Invalid decode type. Invalid header?\n"); return; } |