From b13524e538414c9c6577f2a54b65ec148c5e8b10 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 25 Jan 2018 00:31:24 +0100 Subject: [PATCH] API fix for the upcoming FFmpeg 3.5 release. --- audio_encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio_encoder.cpp b/audio_encoder.cpp index 378f748..e33d218 100644 --- a/audio_encoder.cpp +++ b/audio_encoder.cpp @@ -43,7 +43,7 @@ AudioEncoder::AudioEncoder(const string &codec_name, int bit_rate, const AVOutpu ctx->channel_layout = AV_CH_LAYOUT_STEREO; ctx->time_base = AVRational{1, TIMEBASE}; if (oformat->flags & AVFMT_GLOBALHEADER) { - ctx->flags |= CODEC_FLAG_GLOBAL_HEADER; + ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; } if (avcodec_open2(ctx, codec, NULL) < 0) { fprintf(stderr, "Could not open codec '%s'\n", codec_name.c_str()); -- 2.39.2