[FFmpeg-cvslog] avfilter/f_select: avoid double->int in debug output

Michael Niedermayer git at videolan.org
Wed Jul 30 19:18:02 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 30 17:50:35 2014 +0200| [6f622e5fcbe8484af194436b8dd4ff01f092ab99] | committer: Michael Niedermayer

avfilter/f_select: avoid double->int in debug output

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

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

 libavfilter/f_select.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index a0a609c..8d2c860 100644
--- a/libavfilter/f_select.c
+++ b/libavfilter/f_select.c
@@ -338,7 +338,7 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame)
            select->var_values[VAR_N],
            select->var_values[VAR_PTS],
            select->var_values[VAR_T],
-           (int)select->var_values[VAR_KEY]);
+           frame->key_frame);
 
     switch (inlink->type) {
     case AVMEDIA_TYPE_VIDEO:
@@ -349,9 +349,9 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame)
                select->var_values[VAR_SCENE]);
         break;
     case AVMEDIA_TYPE_AUDIO:
-        av_log(inlink->dst, AV_LOG_DEBUG, " samples_n:%d consumed_samples_n:%d",
-               (int)select->var_values[VAR_SAMPLES_N],
-               (int)select->var_values[VAR_CONSUMED_SAMPLES_N]);
+        av_log(inlink->dst, AV_LOG_DEBUG, " samples_n:%d consumed_samples_n:%f",
+               frame->nb_samples,
+               select->var_values[VAR_CONSUMED_SAMPLES_N]);
         break;
     }
 



More information about the ffmpeg-cvslog mailing list