flxdec: rewrite logic based on GstByteReader/Writer
authorMatthew Waters <matthew@centricular.com>
Tue, 22 Nov 2016 20:09:06 +0000 (07:09 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 23 Nov 2016 10:14:35 +0000 (21:14 +1100)
commit153a8ae752c90d07190ef45803422a4f71ea8bff
tree87c888efabe532977537552817f9db5ab1e9c92e
parent45dcd0b9ccf33ed85cdafeb871a3781f5be57fd9
flxdec: rewrite logic based on GstByteReader/Writer

Solves overreading/writing the given arrays and will error out if the
streams asks to do that.

Also does more error checking that the stream is valid and won't
overrun any allocated arrays.  Also mitigate integer overflow errors
calculating allocation sizes.

https://bugzilla.gnome.org/show_bug.cgi?id=774859
gst/flx/flx_color.c
gst/flx/flx_fmt.h
gst/flx/gstflxdec.c
gst/flx/gstflxdec.h