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>
Sat, 26 Apr 2014 20:32:22 +0000 (22:32 +0200)
commit3e32434593cc137c2e60d3e2cbd5831a21a039eb
treef8b11d9e5ec3e8c3d1594236fb66ba4c80419acf
parentac30307116dc8d81ec4f31f9a7e8d977052029e2
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