avimux: add support for png
authorDimitrios Katsaros <patcherwork@gmail.com>
Fri, 13 Nov 2015 14:52:35 +0000 (15:52 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 16 May 2016 17:14:21 +0000 (18:14 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=758059

gst/avi/gstavimux.c

index e5aa437..593ed44 100644 (file)
@@ -146,7 +146,10 @@ static GstStaticPadTemplate video_sink_factory =
         "video/x-vp8, "
         "width = (int) [ 1, 2147483647 ], "
         "height = (int) [ 1, 2147483647 ], "
-        "framerate = (fraction) [ 0, MAX ]")
+        "framerate = (fraction) [ 0, MAX ];"
+        "image/png, "
+        "width = (int) [ 16, 4096 ], "
+        "height = (int) [ 16, 4096 ], framerate = (fraction) [ 0, MAX ]")
     );
 
 static GstStaticPadTemplate audio_sink_factory =
@@ -602,6 +605,8 @@ gst_avi_mux_vidsink_set_caps (GstPad * pad, GstCaps * vscaps)
       avipad->vids.compression = GST_MAKE_FOURCC ('M', 'J', '2', 'C');
     } else if (!strcmp (mimetype, "video/x-vp8")) {
       avipad->vids.compression = GST_MAKE_FOURCC ('V', 'P', '8', '0');
+    } else if (!strcmp (mimetype, "image/png")) {
+      avipad->vids.compression = GST_MAKE_FOURCC ('p', 'n', 'g', ' ');
     } else {
       valid_caps = FALSE;
     }