diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-04 18:32:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-04 18:32:38 +0000 |
commit | 6ec864da4514b7750346355b181785660f78b7af (patch) | |
tree | deb2d66e0529b0f3ab083b1cfb4bb06d6ef781e8 /libavformat/raw.c | |
parent | 2536c5fde4ac66e400eb21c91f90f044ad27d63a (diff) | |
download | ffmpeg-6ec864da4514b7750346355b181785660f78b7af.tar.gz |
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
Originally committed as revision 3805 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r-- | libavformat/raw.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c index bfb5e1ae5c..075db7918b 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -466,6 +466,21 @@ AVOutputFormat mpeg1video_oformat = { }; #endif //CONFIG_ENCODERS +#ifdef CONFIG_ENCODERS +AVOutputFormat mpeg2video_oformat = { + "mpeg2video", + "MPEG2 video", + NULL, + "m2v", + 0, + 0, + CODEC_ID_MPEG2VIDEO, + raw_write_header, + raw_write_packet, + raw_write_trailer, +}; +#endif //CONFIG_ENCODERS + AVInputFormat mjpeg_iformat = { "mjpeg", "MJPEG video", @@ -677,6 +692,8 @@ int raw_init(void) av_register_input_format(&mpegvideo_iformat); av_register_output_format(&mpeg1video_oformat); + av_register_output_format(&mpeg2video_oformat); + av_register_input_format(&mjpeg_iformat); av_register_output_format(&mjpeg_oformat); |