]> git.sesse.net Git - nageru/commitdiff
API fix for the upcoming FFmpeg 3.5 release.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 24 Jan 2018 23:31:24 +0000 (00:31 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 24 Jan 2018 23:31:24 +0000 (00:31 +0100)
audio_encoder.cpp

index 378f748a279a9430a7c5d888de9b8d29006f9267..e33d2181b46a5465a648bceead3636ba9872b535 100644 (file)
@@ -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());