diff options
author | Nicolas George <george@nsup.org> | 2016-12-23 16:00:57 +0100 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2017-01-12 14:06:16 +0100 |
commit | d3cb140433fe1dfcd3c1f1bd5febe95b2b338a06 (patch) | |
tree | f246567166ca6601baeaead101dcbc45540f482c /libavfilter | |
parent | 7910127a8ee12f0c4761646cecc4f0271a50b6a9 (diff) | |
download | ffmpeg-streaming-d3cb140433fe1dfcd3c1f1bd5febe95b2b338a06.zip ffmpeg-streaming-d3cb140433fe1dfcd3c1f1bd5febe95b2b338a06.tar.gz |
lavfi: move ff_update_link_current_pts() into the utility functions.
It does not change anything for the existing filters and makes
better code fatrorization when future code will use the utility
functions.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index f1b925b..741676a 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -1117,7 +1117,6 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame) filter_frame = default_filter_frame; ret = filter_frame(link, frame); link->frame_count_out++; - ff_update_link_current_pts(link, frame->pts); return ret; fail: @@ -1518,6 +1517,7 @@ int ff_inlink_check_available_samples(AVFilterLink *link, unsigned min) static void consume_update(AVFilterLink *link, const AVFrame *frame) { + ff_update_link_current_pts(link, frame->pts); ff_inlink_process_commands(link, frame); link->dst->is_disabled = !ff_inlink_evaluate_timeline_at_frame(link, frame); link->frame_count_out++; |