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>
Fri, 20 Sep 2013 16:28:41 +0000 (18:28 +0200)
commit23c7dde4048c54c9af6ad1f2894a669cebcd1f1f
tree7bc26985b129004380bfdbfcc5bdfa8fbdaf113b
parentf90de0a5836546f8e37b41adca14f76bfaaec44d
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