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
b2a43162
Commit
b2a43162
authored
Dec 15, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/decoding_encoding: check av_samples_get_buffer_size() for a negative value
Fix broken != 0 check.
parent
81eff6e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
decoding_encoding.c
doc/examples/decoding_encoding.c
+1
-1
No files found.
doc/examples/decoding_encoding.c
View file @
b2a43162
...
...
@@ -170,7 +170,7 @@ static void audio_encode_example(const char *filename)
* we calculate the size of the samples buffer in bytes */
buffer_size
=
av_samples_get_buffer_size
(
NULL
,
c
->
channels
,
c
->
frame_size
,
c
->
sample_fmt
,
0
);
if
(
!
buffer_size
)
{
if
(
buffer_size
<
0
)
{
fprintf
(
stderr
,
"Could not get sample buffer size
\n
"
);
exit
(
1
);
}
...
...
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