[FFmpeg-devel] [PATCH 1/4] lavu: add simple array implementation

Nicolas George george at nsup.org
Mon Mar 3 13:19:08 CET 2014


Le tridi 13 ventôse, an CCXXII, Michael Niedermayer a écrit :
> maybe it could be solved with something like
> int av_dynarray_add_nofree(...)
> 
> which would not free the array on failure but return an error code
> and leave deallocation (if needed) to the caller

I would suggest a macro that takes two statements as arguments: one
statement for success, one statement for failure.

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list