Skip to content

Commit 9894c69

Browse files
committed
small cleanup
Signed-off-by: Rosen Penev <[email protected]>
1 parent 100eabb commit 9894c69

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/asfvideo.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,14 @@ void AsfVideo::decodeBlock() {
276276
extendedStreamProperties();
277277
else if (tag->second == "Degradable_JPEG_Media")
278278
DegradableJPEGMedia();
279-
else // tag found but not processed
280-
{
279+
else { // tag found but not processed
281280
// Make sure that the remaining size is non-zero, so that we won't
282281
// keep revisiting the same location in the file.
283282
const uint64_t remaining_size = objectHeader.getRemainingSize();
284283
Internal::enforce(remaining_size > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
285284
io_->seekOrThrow(io_->tell() + remaining_size, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
286285
}
287-
} else // tag not found
288-
{
286+
} else { // tag not found
289287
// Make sure that the remaining size is non-zero, so that we won't keep
290288
// revisiting the same location in the file.
291289
const uint64_t remaining_size = objectHeader.getRemainingSize();

src/bmffimage.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ enum {
6666

6767
// *****************************************************************************
6868
// class member definitions
69-
#ifdef EXV_ENABLE_BMFF
69+
#ifndef EXV_ENABLE_BMFF
70+
namespace Exiv2 {
71+
bool enableBMFF(bool) {
72+
return false;
73+
}
74+
} // namespace Exiv2
75+
#else
7076
namespace Exiv2 {
7177
static bool enabled = false;
7278
bool enableBMFF(bool enable) {
@@ -801,10 +807,4 @@ bool isBmffType(BasicIo& iIo, bool advance) {
801807
return matched;
802808
}
803809
} // namespace Exiv2
804-
#else // ifdef EXV_ENABLE_BMFF
805-
namespace Exiv2 {
806-
bool enableBMFF(bool) {
807-
return false;
808-
}
809-
} // namespace Exiv2
810810
#endif

0 commit comments

Comments
 (0)