From e4e4add0e3ba7d8ca8ed9135288da910270d2ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de> Date: Sun, 9 Dec 2012 13:17:52 +0100 Subject: [PATCH] Add raw VC-1 muxer to match demuxer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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@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 541e4d14e0b..8c746ff6990 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -275,7 +275,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 0345f70e75f..b804c24078b 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_VC1, + .write_packet = ff_raw_write_packet, + .flags = AVFMT_NOTIMESTAMPS, +}; +#endif -- GitLab