Fix build on older versions of FFmpeg
Jeffrey Pfau jeffrey@endrift.com
Sat, 01 Nov 2014 22:00:31 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/ffmpeg/ffmpeg-encoder.c
→
src/platform/ffmpeg/ffmpeg-encoder.c
@@ -183,7 +183,7 @@ encoder->audio->channel_layout = AV_CH_LAYOUT_STEREO;
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();