[FFmpeg-devel] [PATCH] Add raw VC-1 muxer to match demuxer.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Dec 9 13:19:00 CET 2012
This is admittedly kind of pointless since usually -f image2pipe
can be used for the purpose, but this is more user-friendly.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
libavformat/allformats.c | 2 +-
libavformat/rawenc.c | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 7c72fe8..51acb80 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -253,7 +253,7 @@ void av_register_all(void)
REGISTER_DEMUXER (TTA, tta);
REGISTER_DEMUXER (TXD, txd);
REGISTER_DEMUXER (TTY, tty);
- REGISTER_DEMUXER (VC1, vc1);
+ REGISTER_MUXDEMUX (VC1, vc1);
REGISTER_MUXDEMUX (VC1T, vc1t);
REGISTER_DEMUXER (VIVO, vivo);
REGISTER_DEMUXER (VMD, vmd);
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index 0345f70..91bd6cc 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -268,3 +268,15 @@ AVOutputFormat ff_truehd_muxer = {
.flags = AVFMT_NOTIMESTAMPS,
};
#endif
+
+#if CONFIG_VC1_MUXER
+AVOutputFormat ff_vc1_muxer = {
+ .name = "vc1",
+ .long_name = NULL_IF_CONFIG_SMALL("raw VC-1 video"),
+ .extensions = "vc1",
+ .audio_codec = AV_CODEC_ID_NONE,
+ .video_codec = AV_CODEC_ID_WMV3,
+ .write_packet = ff_raw_write_packet,
+ .flags = AVFMT_NOTIMESTAMPS,
+};
+#endif
--
1.7.10.4
More information about the ffmpeg-devel
mailing list