From 1cc4839d4f28c72c15248e7e3e7915b7bf130ede Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 1 Nov 2014 22:00:31 -0700 Subject: [PATCH] Fix build on older versions of FFmpeg --- src/platform/ffmpeg/ffmpeg-encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/ffmpeg/ffmpeg-encoder.c b/src/platform/ffmpeg/ffmpeg-encoder.c index 0ce81bf0b..9623af691 100644 --- a/src/platform/ffmpeg/ffmpeg-encoder.c +++ b/src/platform/ffmpeg/ffmpeg-encoder.c @@ -183,7 +183,7 @@ bool FFmpegEncoderOpen(struct FFmpegEncoder* encoder, const char* outfile) { encoder->audio->sample_rate = encoder->sampleRate; encoder->audio->sample_fmt = encoder->sampleFormat; AVDictionary* opts = 0; - av_dict_set_int(&opts, "strict", FF_COMPLIANCE_EXPERIMENTAL, 0); + av_dict_set(&opts, "strict", "-2", 0); avcodec_open2(encoder->audio, acodec, &opts); av_dict_free(&opts); encoder->audioFrame = av_frame_alloc();