Commit 6d160afa authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_readvitc: Use avpriv_frame_get_metadatap() avoid direct access to…

avfilter/vf_readvitc: Use avpriv_frame_get_metadatap() avoid direct access to AVFrame.metadata (to comply to API)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ee729cc0
...@@ -221,9 +221,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -221,9 +221,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
int found; int found;
found = read_vitc_line(s, frame->data[0], frame->linesize[0], inlink->w, inlink->h); found = read_vitc_line(s, frame->data[0], frame->linesize[0], inlink->w, inlink->h);
av_dict_set(&frame->metadata, "lavfi.readvitc.found", (found ? "1" : "0"), 0); av_dict_set(avpriv_frame_get_metadatap(frame), "lavfi.readvitc.found", (found ? "1" : "0"), 0);
if (found) if (found)
av_dict_set(&frame->metadata, "lavfi.readvitc.tc_str", make_vitc_tc_string(s->tcbuf, s->line_data), 0); av_dict_set(avpriv_frame_get_metadatap(frame), "lavfi.readvitc.tc_str", make_vitc_tc_string(s->tcbuf, s->line_data), 0);
return ff_filter_frame(outlink, frame); return ff_filter_frame(outlink, frame);
} }
......
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