Not needed try/catch in jpegStreamCodecImpl.cpp

Issue #300 resolved
Paolo Brandoli repo owner created an issue

In jpegStreamCodecImpl.cpp the following try/catch can be removed since the catch later on will work:

    ///////////////////////////////////////////////////////////
    std::uint8_t jpegSignature[2];
    try
    {
        pStream->read(jpegSignature, 2);
    }
    catch(StreamEOFError&)
    {
        IMEBRA_THROW(CodecWrongFormatError, "readStream detected a wrong format");
    }

Comments (4)

  1. Log in to comment