summaryrefslogtreecommitdiff
path: root/libavfilter/video.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-30 16:47:41 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-30 17:56:26 +0200
commita85b4a5696787e36df8d7c805de8f86ea6365acb (patch)
tree59b576d4caac87cc5d5c3450124c2da0ae3cb5f7 /libavfilter/video.c
parent64f07754fe48b4c794ffbcd753803dae21dcc2c1 (diff)
downloadffmpeg-a85b4a5696787e36df8d7c805de8f86ea6365acb.tar.gz
lavfi: use correct PTS for link age.
When start_frame has returned, the buffer reference's PTS may have been modified by another filter.
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c
index 566b0ecb72..95791cda93 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -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);