Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b71db3f3
Commit
b71db3f3
authored
Mar 10, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/buffersrc: do not dereference NULL frame.
frame = NULL is used to indicate EOF.
parent
03b87fe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
buffersrc.c
libavfilter/buffersrc.c
+2
-2
No files found.
libavfilter/buffersrc.c
View file @
b71db3f3
...
...
@@ -93,9 +93,9 @@ int av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags
{
AVFrame
*
copy
=
NULL
;
int
ret
=
0
;
int64_t
layout
=
frame
->
channel_layout
;
if
(
layout
&&
av_get_channel_layout_nb_channels
(
layout
)
!=
av_frame_get_channels
(
frame
))
{
if
(
frame
&&
frame
->
channel_layout
&&
av_get_channel_layout_nb_channels
(
frame
->
channel_layout
)
!=
av_frame_get_channels
(
frame
))
{
av_log
(
0
,
AV_LOG_ERROR
,
"Layout indicates a different number of channels than actually present
\n
"
);
return
AVERROR
(
EINVAL
);
}
...
...
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