File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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
7076namespace Exiv2 {
7177static bool enabled = false ;
7278bool 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
You can’t perform that action at this time.
0 commit comments