Skip to content

Commit

Permalink
Fix build with FFmpeg 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jlindgren90 committed Mar 5, 2022
1 parent 5f6843c commit f60beb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ffaudio/ffaudio-core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static AVInputFormat * get_format_by_content (const char * name, VFSFile & file)
AVProbeData d = {name, buf, filled};
score = target;

f = av_probe_input_format2 (& d, true, & score);
f = (AVInputFormat *) av_probe_input_format2 (& d, true, & score);
if (f)
break;

Expand Down Expand Up @@ -347,7 +347,7 @@ static bool find_codec (AVFormatContext * c, CodecInfo * cinfo)
#endif
if (stream && stream->codecpar && stream->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
{
AVCodec * codec = avcodec_find_decoder (stream->codecpar->codec_id);
AVCodec * codec = (AVCodec *) avcodec_find_decoder (stream->codecpar->codec_id);

if (codec)
{
Expand Down

0 comments on commit f60beb4

Please sign in to comment.