Message ID | 20220829140717.26557-3-anton@khirnov.net |
---|---|
State | Accepted |
Commit | ea5b375e0e95b05c88ec728d5953c916b4925bef |
Headers | show |
Series | [FFmpeg-devel,1/3] lavu/fifo: add the header to its own doxy group | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavutil/fifo.h b/libavutil/fifo.h index 89872d0972..70f9376d97 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -124,9 +124,12 @@ int av_fifo_grow2(AVFifo *f, size_t inc); /** * Write data into a FIFO. * - * In case nb_elems > av_fifo_can_write(f), nothing is written and an error + * In case nb_elems > av_fifo_can_write(f) and the AV_FIFO_FLAG_AUTO_GROW flag + * was not specified at FIFO creation, nothing is written and an error * is returned. * + * Calling function is guaranteed to succeed if nb_elems <= av_fifo_can_write(f). + * * @param f the FIFO buffer * @param buf Data to be written. nb_elems * av_fifo_elem_size(f) bytes will be * read from buf on success.