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
f84a02c0
Commit
f84a02c0
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11713 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2b3c8f8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
apedec.c
libavcodec/apedec.c
+4
-4
No files found.
libavcodec/apedec.c
View file @
f84a02c0
...
@@ -154,8 +154,8 @@ typedef struct APEContext {
...
@@ -154,8 +154,8 @@ typedef struct APEContext {
uint8_t
*
data
;
///< current frame data
uint8_t
*
data
;
///< current frame data
uint8_t
*
data_end
;
///< frame data end
uint8_t
*
data_end
;
///< frame data end
uint8_t
*
ptr
;
///< current position in frame data
const
uint8_t
*
ptr
;
///< current position in frame data
uint8_t
*
last_ptr
;
///< position where last 4608-sample block ended
const
uint8_t
*
last_ptr
;
///< position where last 4608-sample block ended
}
APEContext
;
}
APEContext
;
// TODO: dsputilize
// TODO: dsputilize
...
@@ -834,7 +834,7 @@ static void ape_unpack_stereo(APEContext * ctx, int count)
...
@@ -834,7 +834,7 @@ static void ape_unpack_stereo(APEContext * ctx, int count)
static
int
ape_decode_frame
(
AVCodecContext
*
avctx
,
static
int
ape_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
{
APEContext
*
s
=
avctx
->
priv_data
;
APEContext
*
s
=
avctx
->
priv_data
;
int16_t
*
samples
=
data
;
int16_t
*
samples
=
data
;
...
@@ -856,7 +856,7 @@ static int ape_decode_frame(AVCodecContext * avctx,
...
@@ -856,7 +856,7 @@ static int ape_decode_frame(AVCodecContext * avctx,
if
(
!
s
->
samples
){
if
(
!
s
->
samples
){
s
->
data
=
av_realloc
(
s
->
data
,
(
buf_size
+
3
)
&
~
3
);
s
->
data
=
av_realloc
(
s
->
data
,
(
buf_size
+
3
)
&
~
3
);
s
->
dsp
.
bswap_buf
((
uint32_t
*
)
s
->
data
,
(
uint32_t
*
)
buf
,
buf_size
>>
2
);
s
->
dsp
.
bswap_buf
((
uint32_t
*
)
s
->
data
,
(
const
uint32_t
*
)
buf
,
buf_size
>>
2
);
s
->
ptr
=
s
->
last_ptr
=
s
->
data
;
s
->
ptr
=
s
->
last_ptr
=
s
->
data
;
s
->
data_end
=
s
->
data
+
buf_size
;
s
->
data_end
=
s
->
data
+
buf_size
;
...
...
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