Skip to content

Commit

Permalink
Set decoder status to error if ffmpeg libraries can not be loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Jul 8, 2024
1 parent 4b03932 commit 2cc1333
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions YUViewLib/src/decoder/decoderFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ decoderFFmpeg::decoderFFmpeg(FFmpeg::AVCodecIDWrapper codecID,
// loading the libraries which is slow and uses a lot of memory.
this->ff.loadFFmpegLibraries();
if (!this->ff.loadingSuccessfull())
{
this->setError("Error loading FFmpeg libraries.");
return;
}

// Create the cofiguration parameters
auto codecpar = this->ff.allocCodecParameters();
Expand Down

0 comments on commit 2cc1333

Please sign in to comment.