Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix H264 codec finding for libavcodec < 58.10.100 (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielalb authored and thestr4ng3r committed Jan 15, 2020
1 parent 20872e6 commit 861c0db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gui/src/videodecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

VideoDecoder::VideoDecoder(ChiakiLog *log) : log(log)
{
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 10, 100)
avcodec_register_all();
#endif
codec = avcodec_find_decoder(AV_CODEC_ID_H264);
if(!codec)
throw VideoDecoderException("H264 Codec not available");
Expand Down

0 comments on commit 861c0db

Please sign in to comment.