[vlc-commits] codec: adpcm: set IMA WAV max channels

Francois Cartegnie git at videolan.org
Thu Sep 29 11:44:49 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 29 11:40:29 2016 +0200| [2bf06d17054ec3e23482aa02b6a6e10039cbde82] | committer: Francois Cartegnie

codec: adpcm: set IMA WAV max channels

only ADPCM EA allows > 2 channels

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2bf06d17054ec3e23482aa02b6a6e10039cbde82
---

 modules/codec/adpcm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/adpcm.c b/modules/codec/adpcm.c
index 2c4c4be..1128f5a 100644
--- a/modules/codec/adpcm.c
+++ b/modules/codec/adpcm.c
@@ -174,6 +174,7 @@ static int OpenDecoder( vlc_object_t *p_this )
             break;
         case VLC_CODEC_ADPCM_IMA_WAV: /* IMA ADPCM */
             p_sys->codec = ADPCM_IMA_WAV;
+            i_max_channels = 2;
             break;
         case VLC_CODEC_ADPCM_MS: /* MS ADPCM */
             p_sys->codec = ADPCM_MS;



More information about the vlc-commits mailing list