1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi: use correct PTS for link age.

When start_frame has returned, the buffer reference's PTS
may have been modified by another filter.
This commit is contained in:
Nicolas George 2012-07-30 16:47:41 +02:00
parent 64f07754fe
commit a85b4a5696

View File

@ -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);