summaryrefslogtreecommitdiff
path: root/gst/flx
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-05-02 14:18:08 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-05-02 14:18:08 +0100
commitd917c94037beb20b0413cf281afadaf583c28c6a (patch)
tree863045fd9b3b01b9d835f290683c3b3324e09886 /gst/flx
parent60ba2d7aee37b73a5318f20967eac601e26fe928 (diff)
flxdec: fix integer overflow
Coverity 1139859
Diffstat (limited to 'gst/flx')
-rw-r--r--gst/flx/gstflxdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c
index 35e934edb..3df4e9b86 100644
--- a/gst/flx/gstflxdec.c
+++ b/gst/flx/gstflxdec.c
@@ -520,7 +520,7 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
GST_LOG ("(FLC) oframe2 : 0x%08x", flxh->oframe2);
}
- flxdec->size = (flxh->width * flxh->height);
+ flxdec->size = ((guint) flxh->width * (guint) flxh->height);
/* create delta and output frame */
flxdec->frame_data = g_malloc (flxdec->size);