X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavutil%2Ffifo.h;h=f64914f7c62517dd90784d526fe962b77c9b2656;hp=9ba7e700fc0a7486724a67cade65faf9bf35b7d4;hb=32b936d0c368db467be1c0501b36d9a995545675;hpb=aa033b1ed76269f56e602a42b6fdd8dfe7cb4768 diff --git a/libavutil/fifo.h b/libavutil/fifo.h index 9ba7e700fc..f64914f7c6 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -47,6 +47,12 @@ AVFifoBuffer *av_fifo_alloc(unsigned int size); */ void av_fifo_free(AVFifoBuffer *f); +/** + * Resets the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied. + * @param *f AVFifoBuffer to reset + */ +void av_fifo_reset(AVFifoBuffer *f); + /** * Returns the amount of data in bytes in the AVFifoBuffer, that is the * amount of data you can read from it.