codecparsers: jpeg: fix calculation of segment size.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 18 Sep 2013 13:56:52 +0000 (15:56 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 21 Jun 2015 10:28:38 +0000 (11:28 +0100)
commit41ed5c0266489f7247a8f6a2fc13bb4e0c73c516
tree6bc8d8cc3eddee784f78a493bc99776e8aac1867
parentc83e413656f9c1e9918cfa00c53234327ac83071
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