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
a150bad4
Commit
a150bad4
authored
Nov 10, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/avcodec: check avfilter_copy_frame_props() return code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
304a1ed1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
avcodec.c
libavfilter/avcodec.c
+8
-2
No files found.
libavfilter/avcodec.c
View file @
a150bad4
...
...
@@ -77,7 +77,10 @@ AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame
frame
->
format
);
if
(
!
picref
)
return
NULL
;
avfilter_copy_frame_props
(
picref
,
frame
);
if
(
avfilter_copy_frame_props
(
picref
,
frame
)
<
0
)
{
picref
->
buf
->
data
[
0
]
=
NULL
;
avfilter_unref_bufferp
(
&
picref
);
}
return
picref
;
}
...
...
@@ -90,7 +93,10 @@ AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame
av_frame_get_channel_layout
(
frame
));
if
(
!
samplesref
)
return
NULL
;
avfilter_copy_frame_props
(
samplesref
,
frame
);
if
(
avfilter_copy_frame_props
(
samplesref
,
frame
)
<
0
)
{
samplesref
->
buf
->
data
[
0
]
=
NULL
;
avfilter_unref_bufferp
(
&
samplesref
);
}
return
samplesref
;
}
...
...
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