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
8687f767
Commit
8687f767
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11718 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ea494db3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
atrac3.c
libavcodec/atrac3.c
+5
-5
No files found.
libavcodec/atrac3.c
View file @
8687f767
...
...
@@ -225,14 +225,14 @@ static void IMLT(float *pInput, float *pOutput, int odd_band, float* mdct_tmp)
* @param out pointer to 8 bit array of outdata
*/
static
int
decode_bytes
(
uint8_t
*
inbuffer
,
uint8_t
*
out
,
int
bytes
){
static
int
decode_bytes
(
const
uint8_t
*
inbuffer
,
uint8_t
*
out
,
int
bytes
){
int
i
,
off
;
uint32_t
c
;
uint32_t
*
buf
;
const
uint32_t
*
buf
;
uint32_t
*
obuf
=
(
uint32_t
*
)
out
;
off
=
(
int
)((
long
)
inbuffer
&
3
);
buf
=
(
uint32_t
*
)
(
inbuffer
-
off
);
buf
=
(
const
uint32_t
*
)
(
inbuffer
-
off
);
c
=
be2me_32
((
0x537F6103
>>
(
off
*
8
))
|
(
0x537F6103
<<
(
32
-
(
off
*
8
))));
bytes
+=
3
+
off
;
for
(
i
=
0
;
i
<
bytes
/
4
;
i
++
)
...
...
@@ -868,7 +868,7 @@ static int decodeFrame(ATRAC3Context *q, uint8_t* databuf)
static
int
atrac3_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
{
const
uint8_t
*
buf
,
int
buf_size
)
{
ATRAC3Context
*
q
=
avctx
->
priv_data
;
int
result
=
0
,
i
;
uint8_t
*
databuf
;
...
...
@@ -919,7 +919,7 @@ static int atrac3_decode_frame(AVCodecContext *avctx,
static
int
atrac3_decode_init
(
AVCodecContext
*
avctx
)
{
int
i
;
uint8_t
*
edata_ptr
=
avctx
->
extradata
;
const
uint8_t
*
edata_ptr
=
avctx
->
extradata
;
ATRAC3Context
*
q
=
avctx
->
priv_data
;
/* Take data from the AVCodecContext (RM container). */
...
...
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