Unified · Split
| @@ -338,7 +338,7 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 337 unmodified lines | ||
| 338 | 338 | select->var_values[VAR_N], |
| 339 | 339 | select->var_values[VAR_PTS], |
| 340 | 340 | select->var_values[VAR_T], |
| 341 | − (int)select->var_values[VAR_KEY]); | |
| 341 | + frame->key_frame); | |
| 342 | 342 | |
| 343 | 343 | switch (inlink->type) { |
| 344 | 344 | case AVMEDIA_TYPE_VIDEO: |
| @@ -349,9 +349,9 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 4 unmodified lines | ||
| 349 | 349 | select->var_values[VAR_SCENE]); |
| 350 | 350 | break; |
| 351 | 351 | 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]); | |
| 355 | 355 | break; |
| 356 | 356 | } |
| 357 | 357 | |