Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-30 19:50:35 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-08-05 06:13:38 +0400
commitf99b17bd32ca4048eff814655746d992cd580ce9 (patch)
tree4d64a9bee3916a84d63fa874dd82f8a57b20093c /libavfilter
parent21f6b07a977d0838c7697315b463dacfe9111c28 (diff)
avfilter/f_select: avoid double->int in debug output
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 6f622e5fcbe8484af194436b8dd4ff01f092ab99) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/f_select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index 32c7289982..40955737b9 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;
}