History

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.

Nicolas George committed 9 years ago

Commit d3cb1401 parent 79101271 file · +1 −1Browse files

Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfilter.c+1−1
@@ -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
1123fail:1122fail:
@@ -1518,6 +1517,7 @@ int ff_inlink_check_available_samples(AVFilterLink *link, unsigned min) · 394 unmodified lines
1518 1517
1519static void consume_update(AVFilterLink *link, const AVFrame *frame)1518static 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++;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t