diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-17 03:19:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-17 04:06:06 +0200 |
commit | 5cd460ba63fa78aa8c61e7e5c43da194b0505717 (patch) | |
tree | aed648fcba579a06eeff00a14c23eccacc9057a1 | |
parent | 0d115d779920e6dc61a65ad2da51596eabb7b7f4 (diff) | |
download | ffmpeg-5cd460ba63fa78aa8c61e7e5c43da194b0505717.tar.gz |
vsrc_buffer: fix null ptr segfault
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vsrc_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index d003add88b..ba00b2b651 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -209,7 +209,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); avfilter_unref_buffer(buf); |