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
553d836d
Commit
553d836d
authored
Feb 21, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/adpcm: cosmetics; reindent
parent
55af03db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
adpcm.c
libavcodec/adpcm.c
+30
-30
No files found.
libavcodec/adpcm.c
View file @
553d836d
...
...
@@ -175,36 +175,36 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
break
;
}
switch
(
avctx
->
codec
->
id
)
{
case
AV_CODEC_ID_ADPCM_AICA
:
case
AV_CODEC_ID_ADPCM_IMA_DAT4
:
case
AV_CODEC_ID_ADPCM_IMA_QT
:
case
AV_CODEC_ID_ADPCM_IMA_WAV
:
case
AV_CODEC_ID_ADPCM_4XM
:
case
AV_CODEC_ID_ADPCM_XA
:
case
AV_CODEC_ID_ADPCM_EA_R1
:
case
AV_CODEC_ID_ADPCM_EA_R2
:
case
AV_CODEC_ID_ADPCM_EA_R3
:
case
AV_CODEC_ID_ADPCM_EA_XAS
:
case
AV_CODEC_ID_ADPCM_THP
:
case
AV_CODEC_ID_ADPCM_THP_LE
:
case
AV_CODEC_ID_ADPCM_AFC
:
case
AV_CODEC_ID_ADPCM_DTK
:
case
AV_CODEC_ID_ADPCM_PSX
:
case
AV_CODEC_ID_ADPCM_MTAF
:
case
AV_CODEC_ID_ADPCM_ARGO
:
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S16P
;
break
;
case
AV_CODEC_ID_ADPCM_IMA_WS
:
avctx
->
sample_fmt
=
c
->
vqa_version
==
3
?
AV_SAMPLE_FMT_S16P
:
AV_SAMPLE_FMT_S16
;
break
;
case
AV_CODEC_ID_ADPCM_MS
:
avctx
->
sample_fmt
=
avctx
->
channels
>
2
?
AV_SAMPLE_FMT_S16P
:
AV_SAMPLE_FMT_S16
;
break
;
default:
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S16
;
switch
(
avctx
->
codec
->
id
)
{
case
AV_CODEC_ID_ADPCM_AICA
:
case
AV_CODEC_ID_ADPCM_IMA_DAT4
:
case
AV_CODEC_ID_ADPCM_IMA_QT
:
case
AV_CODEC_ID_ADPCM_IMA_WAV
:
case
AV_CODEC_ID_ADPCM_4XM
:
case
AV_CODEC_ID_ADPCM_XA
:
case
AV_CODEC_ID_ADPCM_EA_R1
:
case
AV_CODEC_ID_ADPCM_EA_R2
:
case
AV_CODEC_ID_ADPCM_EA_R3
:
case
AV_CODEC_ID_ADPCM_EA_XAS
:
case
AV_CODEC_ID_ADPCM_THP
:
case
AV_CODEC_ID_ADPCM_THP_LE
:
case
AV_CODEC_ID_ADPCM_AFC
:
case
AV_CODEC_ID_ADPCM_DTK
:
case
AV_CODEC_ID_ADPCM_PSX
:
case
AV_CODEC_ID_ADPCM_MTAF
:
case
AV_CODEC_ID_ADPCM_ARGO
:
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S16P
;
break
;
case
AV_CODEC_ID_ADPCM_IMA_WS
:
avctx
->
sample_fmt
=
c
->
vqa_version
==
3
?
AV_SAMPLE_FMT_S16P
:
AV_SAMPLE_FMT_S16
;
break
;
case
AV_CODEC_ID_ADPCM_MS
:
avctx
->
sample_fmt
=
avctx
->
channels
>
2
?
AV_SAMPLE_FMT_S16P
:
AV_SAMPLE_FMT_S16
;
break
;
default:
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S16
;
}
return
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