Unified · Split
| @@ -338,7 +338,7 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 337 unmodified lines | |||
| 338 | select->var_values[VAR_N], | 338 | select->var_values[VAR_N], |
| 339 | select->var_values[VAR_PTS], | 339 | select->var_values[VAR_PTS], |
| 340 | select->var_values[VAR_T], | 340 | select->var_values[VAR_T], |
| 341 | (int)select->var_values[VAR_KEY]); | 341 | frame->key_frame); |
| 342 | 342 | ||
| 343 | switch (inlink->type) { | 343 | switch (inlink->type) { |
| 344 | case AVMEDIA_TYPE_VIDEO: | 344 | case AVMEDIA_TYPE_VIDEO: |
| @@ -349,9 +349,9 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 4 unmodified lines | |||
| 349 | select->var_values[VAR_SCENE]); | 349 | select->var_values[VAR_SCENE]); |
| 350 | break; | 350 | break; |
| 351 | case AVMEDIA_TYPE_AUDIO: | 351 | case AVMEDIA_TYPE_AUDIO: |
| 352 | av_log(inlink->dst, AV_LOG_DEBUG, " samples_n:%d consumed_samples_n:%d", | 352 | av_log(inlink->dst, AV_LOG_DEBUG, " samples_n:%d consumed_samples_n:%f", |
| 353 | (int)select->var_values[VAR_SAMPLES_N], | 353 | frame->nb_samples, |
| 354 | (int)select->var_values[VAR_CONSUMED_SAMPLES_N]); | 354 | select->var_values[VAR_CONSUMED_SAMPLES_N]); |
| 355 | break; | 355 | break; |
| 356 | } | 356 | } |
| 357 | 357 | ||