[vlc-devel] [PATCH 20/24] avcodec: map DeluxePaint animation

Daniel Verkamp daniel at drv.nu
Fri Jun 20 08:25:21 CEST 2014


Sample:
http://fate-suite.libav.org/deluxepaint-anm/INTRO1.ANM
---
 include/vlc_fourcc.h           | 1 +
 modules/codec/avcodec/fourcc.c | 2 +-
 src/misc/fourcc.c              | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index cc23bbd0..58bbdad 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -168,6 +168,7 @@
 #define VLC_CODEC_TGQ             VLC_FOURCC('T','G','Q','V')
 #define VLC_CODEC_TQI             VLC_FOURCC('T','Q','I','V')
 #define VLC_CODEC_MAD             VLC_FOURCC('M','A','D','V')
+#define VLC_CODEC_ANM             VLC_FOURCC('A','N','I','M')
 
 /* Planar YUV 4:1:0 Y:V:U */
 #define VLC_CODEC_YV9             VLC_FOURCC('Y','V','U','9')
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index a559eed..ab285b6 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -188,7 +188,7 @@ static const struct
     { VLC_CODEC_FLASHSV2, AV_CODEC_ID_FLASHSV2, VIDEO_ES },
     /* AV_CODEC_ID_CDGRAPHICS */
     /* AV_CODEC_ID_R210 */
-    /* AV_CODEC_ID_ANM */
+    { VLC_CODEC_ANM, AV_CODEC_ID_ANM, VIDEO_ES },
     { VLC_CODEC_BINKVIDEO, AV_CODEC_ID_BINKVIDEO, VIDEO_ES },
     /* AV_CODEC_ID_IFF_ILBM */
     /* AV_CODEC_ID_IFF_BYTERUN1 */
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index cba9422..1527fd2 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -1095,6 +1095,8 @@ static const staticentry_t p_list_video[] = {
 
     B(VLC_CODEC_MAD, "Electronic Arts MAD"),
 
+    B(VLC_CODEC_ANM, "DeluxePaint animation"),
+
     B(0, "")
 };
 static const staticentry_t p_list_audio[] = {
-- 
2.0.0




More information about the vlc-devel mailing list