]> git.sesse.net Git - ffmpeg/commit
lavfi: use a new field for automatic buffer copy.
authorNicolas George <nicolas.george@normalesup.org>
Sun, 29 Jul 2012 16:43:45 +0000 (18:43 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Sat, 4 Aug 2012 19:49:05 +0000 (21:49 +0200)
commit8ef740ce01abff3bc7df0f79803a3dc781d89daa
tree5acd8a9e7edd7e5003e7523ed35fb158cfee18d8
parentf85746509ca8b727d97ff801a63a22f81fd27a0c
lavfi: use a new field for automatic buffer copy.

The code currently use cur_buf as the target of the copy,
but cur_buf can be cleared by the filter if it has given
the reference away or stored it elsewhere as soon as start_frame.

The code still relies on the fact that the reference is not
destroyed until end_frame. All filters currently follow that condition.
An av_assert1() is added to check it; it should at least cause
very visible errors in valgrind.
libavfilter/avfilter.h
libavfilter/video.c