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
15d75dab
Commit
15d75dab
authored
Mar 07, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/utils: fix three const warnings.
No change in assembly code produced on x86_64.
parent
fe9818d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
libavcodec/utils.c
+3
-3
No files found.
libavcodec/utils.c
View file @
15d75dab
...
...
@@ -297,7 +297,7 @@ int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels,
}
if
((
ret
=
av_samples_fill_arrays
(
frame
->
extended_data
,
&
frame
->
linesize
[
0
],
buf
,
nb_channels
,
frame
->
nb_samples
,
(
uint8_t
*
)(
intptr_t
)
buf
,
nb_channels
,
frame
->
nb_samples
,
sample_fmt
,
align
))
<
0
)
{
if
(
frame
->
extended_data
!=
frame
->
data
)
av_freep
(
&
frame
->
extended_data
);
...
...
@@ -1127,7 +1127,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx,
avctx
->
sample_fmt
,
1
);
if
((
ret
=
avcodec_fill_audio_frame
(
frame
,
avctx
->
channels
,
avctx
->
sample_fmt
,
samples
,
samples_size
,
1
)))
(
const
uint8_t
*
)
samples
,
samples_size
,
1
)))
return
ret
;
/* fabricate frame pts from sample count.
...
...
@@ -1249,7 +1249,7 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
return
-
1
;
}
ret
=
avctx
->
codec
->
encode
(
avctx
,
buf
,
buf_size
,
sub
);
ret
=
avctx
->
codec
->
encode
(
avctx
,
buf
,
buf_size
,
(
void
*
)(
intptr_t
)
sub
);
avctx
->
frame_number
++
;
return
ret
;
}
...
...
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