Skip to content

Commit

Permalink
stream.cc: Fix build with ffmpeg-5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lanodan authored and fmang committed Mar 7, 2022
1 parent 41e8c38 commit 684fa9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/audio/stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/opt.h>
#include <libswresample/swresample.h>
}
Expand Down Expand Up @@ -192,7 +193,7 @@ static int open_demuxer(const char *url, oshu::stream *stream)
stream->demuxer,
AVMEDIA_TYPE_AUDIO,
-1, -1,
&stream->codec,
(const AVCodec**)&stream->codec,
0
);
if (rc < 0 || stream->codec == NULL) {
Expand Down

0 comments on commit 684fa9b

Please sign in to comment.