summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-08 21:57:03 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-08 22:28:27 +0100
commit1ad8d6ee03300bad696f6b85ba68420e43e82cbf (patch)
tree5927d09ffbf044d28b0f18f59aaad3c03ef8b5f4
parent38e6f0c7eda35e72fa6d551d3b24f48b03d6603a (diff)
theora: Fix SIGFPE when using 0/1 framerate
libtheora crashes with a 0 framerate, so let's forbid it. https://bugzilla.redhat.com/show_bug.cgi?id=571289
-rw-r--r--ext/theora/gsttheoraenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c
index 121d3820d..ced73d186 100644
--- a/ext/theora/gsttheoraenc.c
+++ b/ext/theora/gsttheoraenc.c
@@ -164,7 +164,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-yuv, "
"format = (fourcc) { I420, Y42B, Y444 }, "
- "framerate = (fraction) [0/1, MAX], "
+ "framerate = (fraction) [1/MAX, MAX], "
"width = (int) [ 1, MAX ], " "height = (int) [ 1, MAX ]")
);
@@ -487,7 +487,7 @@ theora_enc_sink_getcaps (GstPad * pad)
caps_string = g_strdup_printf ("video/x-raw-yuv, "
"format = (fourcc) { %s }, "
- "framerate = (fraction) [0/1, MAX], "
+ "framerate = (fraction) [1/MAX, MAX], "
"width = (int) [ 1, MAX ], " "height = (int) [ 1, MAX ]",
supported_formats);
caps = gst_caps_from_string (caps_string);