History

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

Michael Niedermayer committed 12 years ago

Commit 6f622e51 parent bcbfb951 file · +4 −4Browse files

Unified · Split

libavfilter/f_select.c+4−4
@@ -338,7 +338,7 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 337 unmodified lines
338338 select->var_values[VAR_N],
339339 select->var_values[VAR_PTS],
340340 select->var_values[VAR_T],
341− (int)select->var_values[VAR_KEY]);
341+ frame->key_frame);
342342
343343 switch (inlink->type) {
344344 case AVMEDIA_TYPE_VIDEO:
@@ -349,9 +349,9 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 4 unmodified lines
349349 select->var_values[VAR_SCENE]);
350350 break;
351351 case AVMEDIA_TYPE_AUDIO:
352− av_log(inlink->dst, AV_LOG_DEBUG, " samples_n:%d consumed_samples_n:%d",
353− (int)select->var_values[VAR_SAMPLES_N],
354− (int)select->var_values[VAR_CONSUMED_SAMPLES_N]);
352+ av_log(inlink->dst, AV_LOG_DEBUG, " samples_n:%d consumed_samples_n:%f",
353+ frame->nb_samples,
354+ select->var_values[VAR_CONSUMED_SAMPLES_N]);
355355 break;
356356 }
357357

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t