Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
f84a02c0
Commit
f84a02c0
authored
17 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
const
Originally committed as revision 11713 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2b3c8f8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/apedec.c
+4
-4
4 additions, 4 deletions
libavcodec/apedec.c
with
4 additions
and
4 deletions
libavcodec/apedec.c
+
4
−
4
View file @
f84a02c0
...
...
@@ -154,8 +154,8 @@ typedef struct APEContext {
uint8_t
*
data
;
///< current frame data
uint8_t
*
data_end
;
///< frame data end
uint8_t
*
ptr
;
///< current position in frame data
uint8_t
*
last_ptr
;
///< position where last 4608-sample block ended
const
uint8_t
*
ptr
;
///< current position in frame data
const
uint8_t
*
last_ptr
;
///< position where last 4608-sample block ended
}
APEContext
;
// TODO: dsputilize
...
...
@@ -834,7 +834,7 @@ static void ape_unpack_stereo(APEContext * ctx, int count)
static
int
ape_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
APEContext
*
s
=
avctx
->
priv_data
;
int16_t
*
samples
=
data
;
...
...
@@ -856,7 +856,7 @@ static int ape_decode_frame(AVCodecContext * avctx,
if
(
!
s
->
samples
){
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
->
data_end
=
s
->
data
+
buf_size
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment