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
1df0390e
Commit
1df0390e
authored
Jan 24, 2009
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flacdec: cosmetics: indentation
Originally committed as revision 16762 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1bec121f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
flacdec.c
libavcodec/flacdec.c
+18
-18
No files found.
libavcodec/flacdec.c
View file @
1df0390e
...
...
@@ -545,28 +545,28 @@ static int flac_decode_frame(AVCodecContext *avctx,
}
if
(
1
&&
s
->
max_framesize
)
{
//FIXME truncated
if
(
s
->
bitstream_size
<
4
||
AV_RL32
(
s
->
bitstream
)
!=
MKTAG
(
'f'
,
'L'
,
'a'
,
'C'
))
buf_size
=
FFMIN
(
buf_size
,
s
->
max_framesize
-
FFMIN
(
s
->
bitstream_size
,
s
->
max_framesize
));
input_buf_size
=
buf_size
;
if
(
s
->
bitstream_size
<
4
||
AV_RL32
(
s
->
bitstream
)
!=
MKTAG
(
'f'
,
'L'
,
'a'
,
'C'
))
buf_size
=
FFMIN
(
buf_size
,
s
->
max_framesize
-
FFMIN
(
s
->
bitstream_size
,
s
->
max_framesize
));
input_buf_size
=
buf_size
;
if
(
s
->
bitstream_size
+
buf_size
<
buf_size
||
s
->
bitstream_index
+
s
->
bitstream_size
+
buf_size
<
s
->
bitstream_index
)
return
-
1
;
if
(
s
->
bitstream_size
+
buf_size
<
buf_size
||
s
->
bitstream_index
+
s
->
bitstream_size
+
buf_size
<
s
->
bitstream_index
)
return
-
1
;
if
(
s
->
allocated_bitstream_size
<
s
->
bitstream_size
+
buf_size
)
s
->
bitstream
=
av_fast_realloc
(
s
->
bitstream
,
&
s
->
allocated_bitstream_size
,
s
->
bitstream_size
+
buf_size
);
if
(
s
->
allocated_bitstream_size
<
s
->
bitstream_size
+
buf_size
)
s
->
bitstream
=
av_fast_realloc
(
s
->
bitstream
,
&
s
->
allocated_bitstream_size
,
s
->
bitstream_size
+
buf_size
);
if
(
s
->
bitstream_index
+
s
->
bitstream_size
+
buf_size
>
s
->
allocated_bitstream_size
)
{
memmove
(
s
->
bitstream
,
&
s
->
bitstream
[
s
->
bitstream_index
],
s
->
bitstream_size
);
s
->
bitstream_index
=
0
;
}
memcpy
(
&
s
->
bitstream
[
s
->
bitstream_index
+
s
->
bitstream_size
],
buf
,
buf_size
);
buf
=
&
s
->
bitstream
[
s
->
bitstream_index
];
buf_size
+=
s
->
bitstream_size
;
s
->
bitstream_size
=
buf_size
;
if
(
s
->
bitstream_index
+
s
->
bitstream_size
+
buf_size
>
s
->
allocated_bitstream_size
)
{
memmove
(
s
->
bitstream
,
&
s
->
bitstream
[
s
->
bitstream_index
],
s
->
bitstream_size
);
s
->
bitstream_index
=
0
;
}
memcpy
(
&
s
->
bitstream
[
s
->
bitstream_index
+
s
->
bitstream_size
],
buf
,
buf_size
);
buf
=
&
s
->
bitstream
[
s
->
bitstream_index
];
buf_size
+=
s
->
bitstream_size
;
s
->
bitstream_size
=
buf_size
;
if
(
buf_size
<
s
->
max_framesize
&&
input_buf_size
)
{
return
input_buf_size
;
}
if
(
buf_size
<
s
->
max_framesize
&&
input_buf_size
)
{
return
input_buf_size
;
}
}
init_get_bits
(
&
s
->
gb
,
buf
,
buf_size
*
8
);
...
...
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