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
45d7d31f
Commit
45d7d31f
authored
Sep 16, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shorten: move declaration of 'ret' to top of shorten_decode_frame()
parent
a8055992
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
shorten.c
libavcodec/shorten.c
+2
-2
No files found.
libavcodec/shorten.c
View file @
45d7d31f
...
...
@@ -382,6 +382,8 @@ static int shorten_decode_frame(AVCodecContext *avctx,
ShortenContext
*
s
=
avctx
->
priv_data
;
int
i
,
input_buf_size
=
0
;
int16_t
*
samples
=
data
;
int
ret
;
if
(
s
->
max_framesize
==
0
){
void
*
tmp_ptr
;
s
->
max_framesize
=
1024
;
// should hopefully be enough for the first header
...
...
@@ -417,7 +419,6 @@ static int shorten_decode_frame(AVCodecContext *avctx,
skip_bits
(
&
s
->
gb
,
s
->
bitindex
);
if
(
!
s
->
blocksize
)
{
int
ret
;
if
((
ret
=
read_header
(
s
))
<
0
)
return
ret
;
*
data_size
=
0
;
...
...
@@ -464,7 +465,6 @@ static int shorten_decode_frame(AVCodecContext *avctx,
*
data_size
=
0
;
}
else
{
/* process audio command */
int
ret
;
int
residual_size
=
0
;
int
channel
=
s
->
cur_chan
;
int32_t
coffset
;
...
...
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