Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
5eb273b2
Commit
5eb273b2
authored
Mar 20, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/buffersink: check av_frame_ref() failure.
parent
ac44e52f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
buffersink.c
libavfilter/buffersink.c
+2
-1
No files found.
libavfilter/buffersink.c
View file @
5eb273b2
...
...
@@ -137,7 +137,8 @@ int attribute_align_arg av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFr
if
(
flags
&
AV_BUFFERSINK_FLAG_PEEK
)
{
cur_frame
=
*
((
AVFrame
**
)
av_fifo_peek2
(
buf
->
fifo
,
0
));
av_frame_ref
(
frame
,
cur_frame
);
/* TODO check failure */
if
((
ret
=
av_frame_ref
(
frame
,
cur_frame
))
<
0
)
return
ret
;
}
else
{
av_fifo_generic_read
(
buf
->
fifo
,
&
cur_frame
,
sizeof
(
cur_frame
),
NULL
);
av_frame_move_ref
(
frame
,
cur_frame
);
...
...
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