all repos — mgba @ 1cc4839d4f28c72c15248e7e3e7915b7bf130ede

mGBA Game Boy Advance Emulator

Fix build on older versions of FFmpeg
Jeffrey Pfau jeffrey@endrift.com
Sat, 01 Nov 2014 22:00:31 -0700
commit

1cc4839d4f28c72c15248e7e3e7915b7bf130ede

parent

d8bee5d34bf4f5a44b7eff4c57948b03154531c0

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/ffmpeg/ffmpeg-encoder.csrc/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();