Commit 865e20da authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/f_select: use AVFrame metadata accessor function

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c74b0eda
...@@ -278,7 +278,7 @@ static int select_frame(AVFilterContext *ctx, AVFrame *frame) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment