[FFmpeg-cvslog] truemotion2: Fix av_log level and context

Michael Niedermayer git at videolan.org
Fri Nov 23 01:24:34 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 23 01:19:26 2012 +0100| [2fc0cbd9a62bac4f383f4655476c53ce6d68ce5a] | committer: Michael Niedermayer

truemotion2: Fix av_log level and context

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2fc0cbd9a62bac4f383f4655476c53ce6d68ce5a
---

 libavcodec/truemotion2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c
index 7ef35ff..f1e24b7 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;
     }
 



More information about the ffmpeg-cvslog mailing list