avfilter/vf_telecine: Fix loss of AVFrame properties in output
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0245abc7c1
commit
613483dcfb
@ -241,6 +241,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
av_frame_copy_props(frame, inpicref);
|
||||||
frame->pts = ((s->start_time == AV_NOPTS_VALUE) ? 0 : s->start_time) +
|
frame->pts = ((s->start_time == AV_NOPTS_VALUE) ? 0 : s->start_time) +
|
||||||
outlink->frame_count * s->ts_unit;
|
outlink->frame_count * s->ts_unit;
|
||||||
ret = ff_filter_frame(outlink, frame);
|
ret = ff_filter_frame(outlink, frame);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user