[FFmpeg-devel] [PATCH 03/35] lavu/fifo: introduce the notion of element size

James Almer jamrial at gmail.com
Thu Jan 13 18:59:19 EET 2022



On 1/11/2022 5:45 PM, Anton Khirnov wrote:
> +/**
> + * Allocate and initialize an AVFifoBuffer with a given element size.
> + *
> + * @param f pointer to the newly-allocated FIFO will be written here on success
> + * @param nb_elems initial number of elements that can be stored in the FIFO
> + * @param elem_size Size in bytes of a single element. Further operations on
> + *                  the returned FIFO will implicitly use this element size.
> + * @param flags currently unused, must be 0
> + *
> + * @return newly-allocated AVFifoBuffer on success, a negative error code on failure
> + */
> +AVFifoBuffer *av_fifo_alloc2(size_t elems, size_t elem_size,
> +                             unsigned int flags);

The documentation doesn't match the signature.


More information about the ffmpeg-devel mailing list