changeset 6320:c12a0b951902 libavformat

add Chinese AVS encoding via external library libxavs
author stefang
date Tue, 27 Jul 2010 07:18:36 +0000
parents 258c03dc3307
children 6d379528ffce
files allformats.c raw.c
diffstat 2 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/allformats.c	Mon Jul 26 23:12:28 2010 +0000
+++ b/allformats.c	Tue Jul 27 07:18:36 2010 +0000
@@ -69,7 +69,7 @@
     REGISTER_DEMUXER  (BINK, bink);
     REGISTER_DEMUXER  (C93, c93);
     REGISTER_DEMUXER  (CAF, caf);
-    REGISTER_DEMUXER  (CAVSVIDEO, cavsvideo);
+    REGISTER_MUXDEMUX (CAVSVIDEO, cavsvideo);
     REGISTER_DEMUXER  (CDG, cdg);
     REGISTER_MUXER    (CRC, crc);
     REGISTER_MUXDEMUX (DAUD, daud);
--- a/raw.c	Mon Jul 26 23:12:28 2010 +0000
+++ b/raw.c	Tue Jul 27 07:18:36 2010 +0000
@@ -981,6 +981,22 @@
 };
 #endif
 
+#if CONFIG_CAVSVIDEO_MUXER
+AVOutputFormat cavsvideo_muxer = {
+    "cavsvideo",
+    NULL_IF_CONFIG_SMALL("raw Chinese AVS video"),
+    NULL,
+    "cavs",
+    0,
+    CODEC_ID_NONE,
+    CODEC_ID_CAVS,
+    NULL,
+    raw_write_packet,
+    .flags= AVFMT_NOTIMESTAMPS,
+    .extensions = "avs",
+};
+#endif
+
 #if CONFIG_INGENIENT_DEMUXER
 AVInputFormat ingenient_demuxer = {
     "ingenient",