OSDN Git Service

vsrc_buffer: add flags param to av_vsrc_buffer_add_video_buffer_ref
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 2 Jun 2011 13:43:21 +0000 (15:43 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 5 Jun 2011 23:35:27 +0000 (01:35 +0200)
commit27bcf55f459e038e81f09c17e72e6d44898b9015
tree34ba7668ad2c828fc1ff087901e5b59fbee3d030
parent612d0782fc885aaa0bbb8f8966d425ea91a606cf
vsrc_buffer: add flags param to av_vsrc_buffer_add_video_buffer_ref

The new flags parameter allows to specify if the video ref to add
should overwrite the cache, if the flag is not set vsrc_buffer will
complain and abort; otherwise it will clean the already cached video
ref before to overwrite it, thus avoiding a leak.
doc/APIchanges
ffmpeg.c
libavfilter/avcodec.h
libavfilter/avfilter.h
libavfilter/vsrc_buffer.c
libavfilter/vsrc_buffer.h