Commit 8b05e13d authored by Anton Khirnov's avatar Anton Khirnov
Browse files

buffersrc: fix invalid read in uninit if the fifo hasn't been allocated

parent fad729fa
......@@ -137,7 +137,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
static av_cold void uninit(AVFilterContext *ctx)
BufferSourceContext *s = ctx->priv;
while (av_fifo_size(s->fifo)) {
while (s->fifo && av_fifo_size(s->fifo)) {
AVFilterBufferRef *buf;
av_fifo_generic_read(s->fifo, &buf, sizeof(buf), NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment