diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-14 17:09:43 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-20 21:10:42 +0200 |
commit | 07bad27810cdd7d3171cbd542119aa051646377c (patch) | |
tree | 3bb780df53f6779185ea0fc78ba584a7296105b8 /libavfilter/vf_fps.c | |
parent | 533fd5b5b468131cfe164455783c351eb69af657 (diff) |
lavfi: unref AVFilterLink.cur_buf in ff_end_frame().
This reduces code duplication and prevents stale pointers from remaining
on the link.
Diffstat (limited to 'libavfilter/vf_fps.c')
-rw-r--r-- | libavfilter/vf_fps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index bcc6a69814..f78e008c7d 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -175,6 +175,7 @@ static void end_frame(AVFilterLink *inlink) int64_t delta; int i; + inlink->cur_buf = NULL; s->frames_in++; /* discard frames until we get the first timestamp */ if (s->pts == AV_NOPTS_VALUE) { |