diff options
author | Dimitrios Katsaros <patcherwork@gmail.com> | 2015-11-13 15:52:35 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-05-16 18:14:21 +0100 |
commit | 1f0cfd9ffbcf2f59c43d32b394f10e758f983f90 (patch) | |
tree | b3a66b154036b6e1134f87d9f0941b75bb66dd77 | |
parent | d7eb97393c1f0bbd5942033e53f3634cccd6af89 (diff) |
avimux: add support for png
https://bugzilla.gnome.org/show_bug.cgi?id=758059
-rw-r--r-- | gst/avi/gstavimux.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index e5aa43716..593ed4425 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -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; } |