Web lists-archives.com

[MPlayer-dev-eng] Missing AV_CODEC_ID_ADPCM_IMA_QT entry in mp_taglists.c #2

It seems my attachment was too big in the previous mail, in spite of my efforts. Anyway, here is an even smaller audio sample. Now on to the issue once again:
MPlayer is currently unable to play QuickTime IMA ADPCM encoded audio in Matroska, due to a missing entry in mp_taglists.c. I have attached a small Matroska file with QuickTime IMA ADPCM encoded audio. No video, to keep the size small. On playback, it will distort, since MPlayer obviously thinks it's raw PCM audio. I have also attached a patch for libmpdemux/mp_taglists.c that adds the missing entry.

Mats -- 
Mats Peterson

Attachment: adpcm_ima_qt_tiny.mkv
Description: video/matroska

--- mp_taglists.c.orig	2015-12-09 12:28:35.244495230 +0100
+++ mp_taglists.c	2015-12-09 12:30:02.824499070 +0100
@@ -44,10 +44,11 @@
     { AV_CODEC_ID_ADPCM_EA_R2,       MKTAG('E', 'A', 'R', '2') },
     { AV_CODEC_ID_ADPCM_EA_R3,       MKTAG('E', 'A', 'R', '3') },
     { AV_CODEC_ID_ADPCM_EA_MAXIS_XA, MKTAG('A', 'D', 'X', 'A') },
     { AV_CODEC_ID_ADPCM_IMA_EA_EACS, MKTAG('E', 'A', 'C', 'S') },
     { AV_CODEC_ID_ADPCM_IMA_ISS,     MKTAG('A', 'I', 'S', 'S') },
+    { AV_CODEC_ID_ADPCM_IMA_QT,      MKTAG('i', 'm', 'a', '4') },
     { AV_CODEC_ID_ADPCM_IMA_WS,      MKTAG('A', 'I', 'W', 'S') },
     { AV_CODEC_ID_ADPCM_THP,         MKTAG('T', 'H', 'P', 'A') },
     { AV_CODEC_ID_ADPCM_THP_LE,      MKTAG('T', 'H', 'P', 'L') },
MPlayer-dev-eng mailing list