flxdec: fix integer overflow

Coverity 1139859
This commit is contained in:
Vincent Penquerc'h 2014-05-02 14:18:08 +01:00
parent 60ba2d7aee
commit d917c94037

View file

@ -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);