[FFmpeg-devel] [PATCH] lavu/buffer: add release function

Nicolas George george at nsup.org
Sun Mar 2 16:16:51 CET 2014


Le decadi 10 ventôse, an CCXXII, Lukasz Marek a écrit :
>	    This makes me still wondering about sense of
> av_buffer_is_writable function. It may be unsafe when user don't
> understand it deeply.

If refcount == 1, you are owning the only reference. Therefore, nobody can
create a new reference except your own code.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140302/8051d85b/attachment.asc>


More information about the ffmpeg-devel mailing list