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
34ec327f
Commit
34ec327f
authored
Apr 04, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/decode_audio: reduce the scope of 2 variables
parent
8c5c6871
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
decode_audio.c
doc/examples/decode_audio.c
+1
-1
No files found.
doc/examples/decode_audio.c
View file @
34ec327f
...
@@ -97,7 +97,6 @@ int main(int argc, char **argv)
...
@@ -97,7 +97,6 @@ int main(int argc, char **argv)
avpkt
.
size
=
fread
(
inbuf
,
1
,
AUDIO_INBUF_SIZE
,
f
);
avpkt
.
size
=
fread
(
inbuf
,
1
,
AUDIO_INBUF_SIZE
,
f
);
while
(
avpkt
.
size
>
0
)
{
while
(
avpkt
.
size
>
0
)
{
int
i
,
ch
;
int
got_frame
=
0
;
int
got_frame
=
0
;
if
(
!
decoded_frame
)
{
if
(
!
decoded_frame
)
{
...
@@ -113,6 +112,7 @@ int main(int argc, char **argv)
...
@@ -113,6 +112,7 @@ int main(int argc, char **argv)
exit
(
1
);
exit
(
1
);
}
}
if
(
got_frame
)
{
if
(
got_frame
)
{
int
i
,
ch
;
/* if a frame has been decoded, output it */
/* if a frame has been decoded, output it */
int
data_size
=
av_get_bytes_per_sample
(
c
->
sample_fmt
);
int
data_size
=
av_get_bytes_per_sample
(
c
->
sample_fmt
);
if
(
data_size
<
0
)
{
if
(
data_size
<
0
)
{
...
...
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