From 2fc0cbd9a62bac4f383f4655476c53ce6d68ce5a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 23 Nov 2012 01:19:26 +0100 Subject: [PATCH] truemotion2: Fix av_log level and context Signed-off-by: Michael Niedermayer --- libavcodec/truemotion2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index 7ef35ff2b6..f1e24b729c 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -665,7 +665,7 @@ static inline void tm2_motion_block(TM2Context *ctx, AVFrame *pic, int bx, int b my = av_clip(my, -(by * 4 + 4), ctx->avctx->height - by * 4); if (4*bx+mx<0 || 4*by+my<0 || 4*bx+mx+4 > ctx->avctx->width || 4*by+my+4 > ctx->avctx->height) { - av_log(0,0, "MV out of picture\n"); + av_log(ctx->avctx, AV_LOG_ERROR, "MV out of picture\n"); return; }