History

avfilter/f_select: Set var_values[VAR_KEY] correctly

Michael Niedermayer committed 12 years ago

Commit bcbfb951 parent 887d8d21 file · +1 −0Browse files

Unified · Split

libavfilter/f_select.c+1−0
@@ -308,6 +308,7 @@ static void select_frame(AVFilterContext *ctx, AVFrame *frame) · 307 unmodified lines
308308 select->var_values[VAR_PTS] = TS2D(frame->pts);
309309 select->var_values[VAR_T ] = TS2D(frame->pts) * av_q2d(inlink->time_base);
310310 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;
311312
312313 switch (inlink->type) {
313314 case AVMEDIA_TYPE_AUDIO:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t