diff mbox

[FFmpeg-devel,12/17] lavfi: move ff_update_link_current_pts() into the utility functions.

Message ID 20161224174149.8995-13-george@nsup.org
State Superseded
Headers show

Commit Message

Nicolas George Dec. 24, 2016, 5:41 p.m. UTC
Signed-off-by: Nicolas George <george@nsup.org>
---
 libavfilter/avfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 3927e7f7ac..6d24f74c08 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -1116,7 +1116,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:
@@ -1515,6 +1514,7 @@  int ff_link_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_link_process_commands(link, frame);
     ff_link_process_timeline(link, frame);
     link->frame_count_out++;