Skip to content

Commit

Permalink
lavfi: use correct PTS for link age.
Browse files Browse the repository at this point in the history
When start_frame has returned, the buffer reference's PTS
may have been modified by another filter.
  • Loading branch information
Nicolas George committed Jul 30, 2012
1 parent 64f0775 commit a85b4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavfilter/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
}
pts = link->cur_buf->pts;
ret = start_frame(link, link->cur_buf);
ff_update_link_current_pts(link,link->cur_buf ? link->cur_buf->pts : pts);
ff_update_link_current_pts(link, pts);
if (ret < 0)
clear_link(link);

Expand Down

0 comments on commit a85b4a5

Please sign in to comment.