[vlc-devel] [PATCH 1/3] avcodec: map KGV1 (Kega Game Video)
Daniel Verkamp
daniel at drv.nu
Sun Jan 12 09:15:02 CET 2014
Sample:
http://samples.mplayerhq.hu/V-codecs/kgv1/kgv1.avi
---
include/vlc_fourcc.h | 1 +
modules/codec/avcodec/fourcc.c | 2 +-
src/misc/fourcc.c | 3 +++
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index dd17fe7..91c9ee5 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -144,6 +144,7 @@
#define VLC_CODEC_LCL_ZLIB VLC_FOURCC('Z','L','I','B')
#define VLC_CODEC_THP VLC_FOURCC('T','H','P','0')
#define VLC_CODEC_ESCAPE124 VLC_FOURCC('E','1','2','4')
+#define VLC_CODEC_KGV1 VLC_FOURCC('K','G','V','1')
/* 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 63f1c2e..00056e9 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -193,7 +193,7 @@ static const struct
#endif
/* AV_CODEC_ID_IFF_ILBM */
/* AV_CODEC_ID_IFF_BYTERUN1 */
- /* AV_CODEC_ID_KGV1 */
+ { VLC_CODEC_KGV1, AV_CODEC_ID_KGV1, VIDEO_ES },
/* AV_CODEC_ID_YOP */
{ VLC_CODEC_VP8, AV_CODEC_ID_VP8, VIDEO_ES },
/* AV_CODEC_ID_PICTOR */
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 9872100..17ac24b 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -1014,6 +1014,9 @@ static const staticentry_t p_list_video[] = {
B(VLC_CODEC_ESCAPE124, "Escape 124 video"),
+ B(VLC_CODEC_KGV1, "Kega Game Video (KGV1)"),
+ A("KGV1"),
+
B(0, "")
};
static const staticentry_t p_list_audio[] = {
--
1.8.5.2
More information about the vlc-devel
mailing list