Fix build on older versions of FFmpeg

This commit is contained in:
Jeffrey Pfau 2014-11-01 22:00:31 -07:00
parent d8bee5d34b
commit 1cc4839d4f
1 changed files with 1 additions and 1 deletions

View File

@ -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();