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

Francois Cartegnie git at videolan.org
Thu Sep 29 11:53:35 CEST 2016


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 29 11:40:29 2016 +0200| [6255459e6d291cd367e0be5e0f197f65954c0127] | committer: Jean-Baptiste Kempf

codec: adpcm: set IMA WAV max channels

only ADPCM EA allows > 2 channels

(cherry picked from commit 2bf06d17054ec3e23482aa02b6a6e10039cbde82)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=6255459e6d291cd367e0be5e0f197f65954c0127
---

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

diff --git a/modules/codec/adpcm.c b/modules/codec/adpcm.c
index 3b6872e..61a5d65 100644
--- a/modules/codec/adpcm.c
+++ b/modules/codec/adpcm.c
@@ -173,6 +173,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