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>
Mon, 28 Apr 2014 07:39:18 +0000 (09:39 +0200)
commite1085aa08f1a58ba1012add80aa86afac1b0df23
treecb502c537ea98094e808a74efb441c50e06ef979
parent481efd4ce7055ef825324e6fd38b54df29d5a416
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