Skip to content

Commit

Permalink
wrong settings name
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Feb 22, 2021
1 parent 59efa72 commit 903e307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YUViewLib/src/decoder/decoderVVDec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ decoderVVDec::decoderVVDec(int signalID, bool cachingDecoder)
// Try to load the decoder library (.dll on Windows, .so on Linux, .dylib on Mac)
QSettings settings;
settings.beginGroup("Decoders");
this->loadDecoderLibrary(settings.value("libvvdecFile", "").toString());
this->loadDecoderLibrary(settings.value("libVVDecFile", "").toString());
settings.endGroup();

if (this->decoderState != DecoderState::Error)
Expand Down Expand Up @@ -378,7 +378,7 @@ void decoderVVDec::copyImgToByteArray(QByteArray &dst)
{
auto bitDepthU = this->lib.libvvdec_get_picture_bit_depth(this->decoder, LIBvvdec_CHROMA_U);
auto bitDepthV = this->lib.libvvdec_get_picture_bit_depth(this->decoder, LIBvvdec_CHROMA_V);
if ((outputTwoByte != bitDepthU > 8) || (outputTwoByte != bitDepthV > 8))
if ((outputTwoByte != (bitDepthU > 8)) || (outputTwoByte != (bitDepthV > 8)))
{
DEBUG_vvdec("decoderVVDec::copyImgToByteArray different bit depth in YUV components. This "
"is not supported.");
Expand Down

0 comments on commit 903e307

Please sign in to comment.