Kaydet (Commit) 93de4dc2 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

...follow-up to 63899beb "WaE: unused variable"
removing the nVerticalSamplingFactor part

Change-Id: I2830dc0647cf651014e1199ef62a7ea50e4a1719
üst 8caf23a7
......@@ -365,16 +365,18 @@ bool GraphicDescriptor::ImpDetectJPG( SvStream& rStm, bool bExtendedInfo )
sal_uInt16 nSamplesPerLine = 0;
sal_uInt8 nNumberOfImageComponents = 0;
sal_uInt8 nComponentsIdentifier = 0;
sal_uInt8 nHorizontalSamplingFactor = 0;
sal_uInt8 nSamplingFactor = 0;
sal_uInt8 nQuantizationTableDestinationSelector = 0;
rStm.ReadUChar( nSamplePrecision )
.ReadUInt16( nNumberOfLines )
.ReadUInt16( nSamplesPerLine )
.ReadUChar( nNumberOfImageComponents )
.ReadUChar( nComponentsIdentifier )
.ReadUChar( nHorizontalSamplingFactor )
.ReadUChar( nSamplingFactor )
.ReadUChar( nQuantizationTableDestinationSelector );
nHorizontalSamplingFactor >>= 4;
// nSamplingFactor (lower nibble: vertial,
// upper nibble: horizontal) is unused
aPixSize.Height() = nNumberOfLines;
aPixSize.Width() = nSamplesPerLine;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment