Unified · Split
| @@ -308,6 +308,7 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 307 unmodified lines | ||
| 308 | 308 | select->var_values[VAR_PTS] = TS2D(frame->pts); |
| 309 | 309 | select->var_values[VAR_T ] = TS2D(frame->pts) * av_q2d(inlink->time_base); |
| 310 | 310 | select->var_values[VAR_POS] = av_frame_get_pkt_pos(frame) == -1 ? NAN : av_frame_get_pkt_pos(frame); |
| 311 | + select->var_values[VAR_KEY] = frame->key_frame; | |
| 311 | 312 | |
| 312 | 313 | switch (inlink->type) { |
| 313 | 314 | case AVMEDIA_TYPE_AUDIO: |