JpegMetadataExtractor: Allow empty segments
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 29 Sep 2016 22:15:48 +0000 (00:15 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 29 Sep 2016 22:15:48 +0000 (00:15 +0200)
commitee2ed0e40321be622cb1d3ac431b9643b84907e8
tree71c585b732643627fa021365c0d49fc6f1a33d29
parente09cc5413f81181a1fd8366c23baf148505489fe
JpegMetadataExtractor: Allow empty segments

A segment which consists only of the marker and length value
(equal to 2, the length of the value itself) appears to be
perfectly valid, and is ignored by every image viewer I tested.

Bug: T147015
Change-Id: I3124c587ccb1c457df25fd5bf7a47feab9312a38
includes/media/JpegMetadataExtractor.php