codecparsers: jpeg: fix calculation of segment size.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 18 Sep 2013 13:56:52 +0000 (15:56 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 25 Mar 2014 15:19:06 +0000 (16:19 +0100)
commitec941398abed0f8baa60a3da698d31304af8334b
tree1efd2f14e020968b2f62f85688f1cf3d01c596ea
parent17a0cf3f5eb7831656d6a1736a567e3d71fdb910
codecparsers: jpeg: fix calculation of segment size.

The size of a marker segment is defined to be exclusive of any initial
marker code. So, fix the size for SOI, EOI and APPn segments but also
the size of any possible segment that is usually "reserved" or not
explicitly defined.

https://bugzilla.gnome.org/show_bug.cgi?id=707447
gst-libs/gst/codecparsers/gstjpegparser.c