[FFmpeg-cvslog] vf_idet: pass context to av_log()

Michael Niedermayer git at videolan.org
Wed Apr 4 16:26:22 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr  4 16:10:47 2012 +0200| [398491ae017a13ab2f84582880f42fa0f951d2aa] | committer: Michael Niedermayer

vf_idet: pass context to av_log()

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

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

 libavfilter/vf_idet.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index cd801b9..2fbb711 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -97,19 +97,19 @@ static void filter(AVFilterContext *ctx)
 #endif
 
     if      (alpha[0] / (float)alpha[1] > idet->interlace_threshold){
-        av_log(0, AV_LOG_INFO, "Interlaced, top field first\n");
+        av_log(ctx, AV_LOG_INFO, "Interlaced, top field first\n");
         t++;
     }else if(alpha[1] / (float)alpha[0] > idet->interlace_threshold){
-        av_log(0, AV_LOG_INFO, "Interlaced, bottom field first\n");
+        av_log(ctx, AV_LOG_INFO, "Interlaced, bottom field first\n");
         b++;
     }else if(alpha[1] / (float)delta    > idet->progressive_threshold){
-        av_log(0, AV_LOG_INFO, "Progressive\n");
+        av_log(ctx, AV_LOG_INFO, "Progressive\n");
         p++;
     }else{
-        av_log(0, AV_LOG_INFO, "Undetermined\n");
+        av_log(ctx, AV_LOG_INFO, "Undetermined\n");
         u++;
     }
-//     av_log(0,0, "t%d b%d p%d u%d\n", t,b,p,u);
+//     av_log(ctx,0, "t%d b%d p%d u%d\n", t,b,p,u);
 }
 
 static void return_frame(AVFilterContext *ctx)



More information about the ffmpeg-cvslog mailing list