diff raw.c @ 637:76e36d97a27a libavformat

Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
author michael
date Tue, 04 Jan 2005 18:32:38 +0000
parents f701ba509d0c
children e2687b784c3a
line wrap: on
line diff
--- a/raw.c	Tue Jan 04 14:38:52 2005 +0000
+++ b/raw.c	Tue Jan 04 18:32:38 2005 +0000
@@ -466,6 +466,21 @@
 };
 #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 @@
     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);