[vlc-commits] adpcm: Simplify
Hugo Beauzée-Luyssen
git at videolan.org
Thu Jul 13 09:48:00 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jul 13 09:33:55 2017 +0200| [3b782cb9cdeff09e1702b6888b8f23e569d3c54b] | committer: Hugo Beauzée-Luyssen
adpcm: Simplify
And reorder the fourccs to match the initialization switch
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b782cb9cdeff09e1702b6888b8f23e569d3c54b
---
modules/codec/adpcm.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/codec/adpcm.c b/modules/codec/adpcm.c
index 0e1051de71..6296620702 100644
--- a/modules/codec/adpcm.c
+++ b/modules/codec/adpcm.c
@@ -140,11 +140,11 @@ static int OpenDecoder( vlc_object_t *p_this )
switch( p_dec->fmt_in.i_codec )
{
- case VLC_FOURCC('i','m','a', '4'): /* IMA ADPCM */
- case VLC_FOURCC('m','s',0x00,0x02): /* MS ADPCM */
- case VLC_FOURCC('m','s',0x00,0x11): /* IMA ADPCM */
- case VLC_CODEC_ADPCM_DK3:
+ case VLC_CODEC_ADPCM_IMA_QT:
+ case VLC_CODEC_ADPCM_IMA_WAV:
+ case VLC_CODEC_ADPCM_MS:
case VLC_CODEC_ADPCM_DK4:
+ case VLC_CODEC_ADPCM_DK3:
case VLC_CODEC_ADPCM_XA_EA:
break;
default:
@@ -169,7 +169,7 @@ static int OpenDecoder( vlc_object_t *p_this )
uint8_t i_max_channels = 5;
switch( p_dec->fmt_in.i_codec )
{
- case VLC_FOURCC('i','m','a', '4'): /* IMA ADPCM */
+ case VLC_CODEC_ADPCM_IMA_QT: /* IMA ADPCM */
p_sys->codec = ADPCM_IMA_QT;
i_max_channels = 2;
break;
More information about the vlc-commits
mailing list