Skip to content

Commit

Permalink
Fix image handler to give jp2image code higher priority than the next…
Browse files Browse the repository at this point in the history
… isobmff code.
  • Loading branch information
clanmills committed Jan 24, 2021
1 parent 92469f4 commit 460a802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/exiv2/jp2image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Exiv2
// Add JPEG-2000 to the supported image formats
namespace ImageType
{
const int jp2 = 16; //!< JPEG-2000 image type
const int jp2 = 19; //!< JPEG-2000 image type
}

/*!
Expand Down
2 changes: 1 addition & 1 deletion src/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ namespace {
{ ImageType::psd, newPsdInstance, isPsdType, amReadWrite, amReadWrite, amReadWrite, amNone },
{ ImageType::tga, newTgaInstance, isTgaType, amNone, amNone, amNone, amNone },
{ ImageType::bmp, newBmpInstance, isBmpType, amNone, amNone, amNone, amNone },
{ ImageType::jp2, newJp2Instance, isJp2Type, amReadWrite, amReadWrite, amReadWrite, amNone },
#ifdef EXV_ENABLE_ISOBMFF
{ ImageType::bmff, newBmffInstance, isBmffType, amRead, amRead, amRead, amNone },
#endif // EXV_ENABLE_ISOBMFF
{ ImageType::jp2, newJp2Instance, isJp2Type, amReadWrite, amReadWrite, amReadWrite, amNone },
#ifdef EXV_ENABLE_VIDEO
{ ImageType::qtime,newQTimeInstance,isQTimeType,amRead, amNone, amRead, amNone },
{ ImageType::riff, newRiffInstance, isRiffType, amRead, amNone, amRead, amNone },
Expand Down

0 comments on commit 460a802

Please sign in to comment.