Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
8b05e13d
Commit
8b05e13d
authored
May 06, 2012
by
Anton Khirnov
Browse files
buffersrc: fix invalid read in uninit if the fifo hasn't been allocated
parent
fad729fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libavfilter/buffersrc.c
libavfilter/buffersrc.c
+1
-1
No files found.
libavfilter/buffersrc.c
View file @
8b05e13d
...
...
@@ -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
);
avfilter_unref_buffer
(
buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment