- const File::Offset offset = file->currentOffset();
- bool bitmaskWithSig = bitmaskWithSignature(offset);
+ File::Offset offset;
+ bool bitmaskWithSig = false;
+
+ if (m_supportsSeeking) {
+ offset = file->currentOffset();
+ bitmaskWithSig = bitmaskWithSignature(offset);
+ }
+