mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 13:33:13 -07:00
Fix H264 codec finding for libavcodec < 58.10.100 (#143)
This commit is contained in:
parent
20872e61f4
commit
861c0dbaa3
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@
|
||||||
|
|
||||||
VideoDecoder::VideoDecoder(ChiakiLog *log) : log(log)
|
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);
|
codec = avcodec_find_decoder(AV_CODEC_ID_H264);
|
||||||
if(!codec)
|
if(!codec)
|
||||||
throw VideoDecoderException("H264 Codec not available");
|
throw VideoDecoderException("H264 Codec not available");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue