Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
788c0561
Commit
788c0561
authored
Jul 06, 2017
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_fourcc: add a define for "XAJ\00" (EA ADPCM)
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ac2886e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
include/vlc_fourcc.h
include/vlc_fourcc.h
+1
-0
modules/codec/adpcm.c
modules/codec/adpcm.c
+2
-2
modules/demux/xa.c
modules/demux/xa.c
+1
-1
src/misc/fourcc_list.h
src/misc/fourcc_list.h
+3
-0
No files found.
include/vlc_fourcc.h
View file @
788c0561
...
...
@@ -440,6 +440,7 @@
#define VLC_CODEC_ADPCM_SBPRO_3 VLC_FOURCC('m','s',0x00,0xC3)
#define VLC_CODEC_ADPCM_SBPRO_4 VLC_FOURCC('m','s',0x00,0xC4)
#define VLC_CODEC_ADPCM_THP VLC_FOURCC('T','H','P','A')
#define VLC_CODEC_ADPCM_XA_EA VLC_FOURCC('X','A','J', 0)
#define VLC_CODEC_G723_1 VLC_FOURCC('g','7','2', 0x31)
#define VLC_CODEC_G729 VLC_FOURCC('g','7','2','9')
#define VLC_CODEC_VMDAUDIO VLC_FOURCC('v','m','d','a')
...
...
modules/codec/adpcm.c
View file @
788c0561
...
...
@@ -145,7 +145,7 @@ static int OpenDecoder( vlc_object_t *p_this )
case
VLC_FOURCC
(
'm'
,
's'
,
0x00
,
0x11
):
/* IMA ADPCM */
case
VLC_CODEC_ADPCM_DK3
:
case
VLC_CODEC_ADPCM_DK4
:
case
VLC_
FOURCC
(
'X'
,
'A'
,
'J'
,
0
):
/* EA ADPCM */
case
VLC_
CODEC_ADPCM_XA_EA
:
break
;
default:
return
VLC_EGENERIC
;
...
...
@@ -189,7 +189,7 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys
->
codec
=
ADPCM_DK3
;
i_max_channels
=
2
;
break
;
case
VLC_
FOURCC
(
'X'
,
'A'
,
'J'
,
0
)
:
/* EA ADPCM */
case
VLC_
CODEC_ADPCM_EA
:
/* EA ADPCM */
p_sys
->
codec
=
ADPCM_EA
;
p_sys
->
prev
=
calloc
(
2
*
p_dec
->
fmt_in
.
audio
.
i_channels
,
sizeof
(
int16_t
)
);
...
...
modules/demux/xa.c
View file @
788c0561
...
...
@@ -115,7 +115,7 @@ static int Open( vlc_object_t * p_this )
}
es_format_t
fmt
;
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_
FOURCC
(
'X'
,
'A'
,
'J'
,
0
)
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_
CODEC_ADPCM_EA
);
msg_Dbg
(
p_demux
,
"assuming EA ADPCM audio codec"
);
fmt
.
audio
.
i_rate
=
GetDWLE
(
&
xa
.
nSamplesPerSec
);
...
...
src/misc/fourcc_list.h
View file @
788c0561
...
...
@@ -1308,6 +1308,9 @@ static const staticentry_t p_list_audio[] = {
B
(
VLC_CODEC_ADPCM_THP
,
"GameCube THP ADPCM"
),
B
(
VLC_CODEC_ADPCM_XA_EA
,
"EA-XA ADPCM"
),
A
(
"XAJ
\x00
"
),
/* AMR */
B
(
VLC_CODEC_AMR_NB
,
"AMR narrow band"
),
A
(
"samr"
),
...
...
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