It does not change anything for the existing filters and makes better code fatrorization when future code will use the utility functions.
Unified · Split
| @@ -1117,7 +1117,6 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame) · 1116 unmodified lines | |||
| 1117 | filter_frame = default_filter_frame; | 1117 | filter_frame = default_filter_frame; |
| 1118 | ret = filter_frame(link, frame); | 1118 | ret = filter_frame(link, frame); |
| 1119 | link->frame_count_out++; | 1119 | link->frame_count_out++; |
| 1120 | ff_update_link_current_pts(link, frame->pts); | ||
| 1121 | return ret; | 1120 | return ret; |
| 1122 | 1121 | ||
| 1123 | fail: | 1122 | fail: |
| @@ -1518,6 +1517,7 @@ int ff_inlink_check_available_samples(AVFilterLink *link, unsigned min) · 394 unmodified lines | |||
| 1518 | 1517 | ||
| 1519 | static void consume_update(AVFilterLink *link, const AVFrame *frame) | 1518 | static void consume_update(AVFilterLink *link, const AVFrame *frame) |
| 1520 | { | 1519 | { |
| 1520 | ff_update_link_current_pts(link, frame->pts); | ||
| 1521 | ff_inlink_process_commands(link, frame); | 1521 | ff_inlink_process_commands(link, frame); |
| 1522 | link->dst->is_disabled = !ff_inlink_evaluate_timeline_at_frame(link, frame); | 1522 | link->dst->is_disabled = !ff_inlink_evaluate_timeline_at_frame(link, frame); |
| 1523 | link->frame_count_out++; | 1523 | link->frame_count_out++; |