[FFmpeg-cvslog] avfilter/f_select: Set var_values[VAR_KEY] correctly

Michael Niedermayer git at videolan.org
Wed Jul 30 19:18:01 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 30 17:48:33 2014 +0200| [bcbfb95b0e327679337eaca59c247a2580ea4105] | committer: Michael Niedermayer

avfilter/f_select: Set var_values[VAR_KEY] correctly

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bcbfb95b0e327679337eaca59c247a2580ea4105
---

 libavfilter/f_select.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index e6a9857..a0a609c 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:



More information about the ffmpeg-cvslog mailing list