diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-11 09:58:43 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-20 21:09:48 +0200 |
commit | 5b50ae94e66547b25fc010d7e4bb1de5788a459c (patch) | |
tree | 84cbd9d34959e3e94b82d28e8c2aff351e5ed8bf /libavfilter | |
parent | 0393af4f0b9a536fb2a005c94aeb3a476db2645b (diff) | |
download | ffmpeg-streaming-5b50ae94e66547b25fc010d7e4bb1de5788a459c.zip ffmpeg-streaming-5b50ae94e66547b25fc010d7e4bb1de5788a459c.tar.gz |
vf_slicify: clear AVFilterLink.cur_buf in start_frame().
The buffer is passed on to the next filter, so we shouldn't keep any
pointers to it.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_slicify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_slicify.c b/libavfilter/vf_slicify.c index e256c45..e354075 100644 --- a/libavfilter/vf_slicify.c +++ b/libavfilter/vf_slicify.c @@ -73,6 +73,7 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) slice->h = FFMAX(8, slice->h & (-1 << slice->vshift)); av_log(link->dst, AV_LOG_DEBUG, "h:%d\n", slice->h); + link->cur_buf = NULL; ff_start_frame(link->dst->outputs[0], picref); } |