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
f78dc660
Commit
f78dc660
authored
Dec 30, 2019
by
Zhao Zhili
Committed by
Michael Niedermayer
Dec 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/utils: remove access of AV_SAMPLE_FMT_NB
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
1e3e547a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.c
libavcodec/utils.c
+2
-2
No files found.
libavcodec/utils.c
View file @
f78dc660
...
...
@@ -1510,7 +1510,7 @@ int av_get_exact_bits_per_sample(enum AVCodecID codec_id)
enum
AVCodecID
av_get_pcm_codec
(
enum
AVSampleFormat
fmt
,
int
be
)
{
static
const
enum
AVCodecID
map
[
AV_SAMPLE_FMT_NB
][
2
]
=
{
static
const
enum
AVCodecID
map
[][
2
]
=
{
[
AV_SAMPLE_FMT_U8
]
=
{
AV_CODEC_ID_PCM_U8
,
AV_CODEC_ID_PCM_U8
},
[
AV_SAMPLE_FMT_S16
]
=
{
AV_CODEC_ID_PCM_S16LE
,
AV_CODEC_ID_PCM_S16BE
},
[
AV_SAMPLE_FMT_S32
]
=
{
AV_CODEC_ID_PCM_S32LE
,
AV_CODEC_ID_PCM_S32BE
},
...
...
@@ -1523,7 +1523,7 @@ enum AVCodecID av_get_pcm_codec(enum AVSampleFormat fmt, int be)
[
AV_SAMPLE_FMT_FLTP
]
=
{
AV_CODEC_ID_PCM_F32LE
,
AV_CODEC_ID_PCM_F32BE
},
[
AV_SAMPLE_FMT_DBLP
]
=
{
AV_CODEC_ID_PCM_F64LE
,
AV_CODEC_ID_PCM_F64BE
},
};
if
(
fmt
<
0
||
fmt
>=
AV_SAMPLE_FMT_NB
)
if
(
fmt
<
0
||
fmt
>=
FF_ARRAY_ELEMS
(
map
)
)
return
AV_CODEC_ID_NONE
;
if
(
be
<
0
||
be
>
1
)
be
=
AV_NE
(
1
,
0
);
...
...
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