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
134206ca
Commit
134206ca
authored
May 07, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/utils: fix const warnings
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8dd435f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
libavformat/utils.c
+3
-3
No files found.
libavformat/utils.c
View file @
134206ca
...
...
@@ -120,7 +120,7 @@ void av_format_inject_global_side_data(AVFormatContext *s)
}
}
static
AVCodec
*
find_decoder
(
AVFormatContext
*
s
,
AVStream
*
st
,
enum
AVCodecID
codec_id
)
static
const
AVCodec
*
find_decoder
(
AVFormatContext
*
s
,
AVStream
*
st
,
enum
AVCodecID
codec_id
)
{
if
(
st
->
codec
->
codec
)
return
st
->
codec
->
codec
;
...
...
@@ -3473,7 +3473,7 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type,
int
i
,
nb_streams
=
ic
->
nb_streams
;
int
ret
=
AVERROR_STREAM_NOT_FOUND
,
best_count
=
-
1
,
best_bitrate
=
-
1
,
best_multiframe
=
-
1
,
count
,
bitrate
,
multiframe
;
unsigned
*
program
=
NULL
;
AVCodec
*
decoder
=
NULL
,
*
best_decoder
=
NULL
;
const
AVCodec
*
decoder
=
NULL
,
*
best_decoder
=
NULL
;
if
(
related_stream
>=
0
&&
wanted_stream_nb
<
0
)
{
AVProgram
*
p
=
av_find_program_from_stream
(
ic
,
NULL
,
related_stream
);
...
...
@@ -3524,7 +3524,7 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type,
}
}
if
(
decoder_ret
)
*
decoder_ret
=
best_decoder
;
*
decoder_ret
=
(
AVCodec
*
)
best_decoder
;
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