diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-30 19:48:33 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-30 19:49:26 +0400 |
commit | bcbfb95b0e327679337eaca59c247a2580ea4105 (patch) | |
tree | e51913bfc04e763a29b323627693d14e76f7dd24 /libavfilter/f_select.c | |
parent | 887d8d293fc31c949427f971f37c126b3812b451 (diff) |
avfilter/f_select: Set var_values[VAR_KEY] correctly
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/f_select.c')
-rw-r--r-- | libavfilter/f_select.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index e6a9857bfc..a0a609c7f3 100644 --- a/libavfilter/f_select.c +++ b/libavfilter/f_select.c @@ -308,6 +308,7 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) select->var_values[VAR_PTS] = TS2D(frame->pts); select->var_values[VAR_T ] = TS2D(frame->pts) * av_q2d(inlink->time_base); select->var_values[VAR_POS] = av_frame_get_pkt_pos(frame) == -1 ? NAN : av_frame_get_pkt_pos(frame); + select->var_values[VAR_KEY] = frame->key_frame; switch (inlink->type) { case AVMEDIA_TYPE_AUDIO: |