avfilter/f_select: use AVFrame metadata accessor function

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/21/head
Michael Niedermayer 12 years ago
parent c74b0eda34
commit 865e20daf3
  1. 2
      libavfilter/f_select.c

@ -278,7 +278,7 @@ static int select_frame(AVFilterContext *ctx, AVFrame *frame)
select->var_values[VAR_SCENE] = get_scene_score(ctx, frame); select->var_values[VAR_SCENE] = get_scene_score(ctx, frame);
// TODO: document metadata // TODO: document metadata
snprintf(buf, sizeof(buf), "%f", select->var_values[VAR_SCENE]); snprintf(buf, sizeof(buf), "%f", select->var_values[VAR_SCENE]);
av_dict_set(&frame->metadata, "lavfi.scene_score", buf, 0); av_dict_set(avpriv_frame_get_metadatap(frame), "lavfi.scene_score", buf, 0);
} }
#endif #endif
break; break;

Loading…
Cancel
Save