Control: tags -1 fixed-upstream patch Control: forwarded -1 https://github.com/mgba-emu/mgba/issues/966
On 24/01/18 22:26, jcowg...@debian.org wrote: > Source: mgba > Version: 0.5.2+dfsg1-3 > Severity: important > User: debian-multime...@lists.debian.org > Usertags: ffmpeg-3.5-transition > > Hi, > > Your package FTBFS with the upcoming version 3.5 of FFmpeg. Fixed with the attached patch. An equivalent has been applied upstream (see above link). Thanks, James
--- a/src/feature/ffmpeg/ffmpeg-encoder.c +++ b/src/feature/ffmpeg/ffmpeg-encoder.c @@ -229,7 +229,7 @@ bool FFmpegEncoderOpen(struct FFmpegEnco AVDictionary* opts = 0; av_dict_set(&opts, "strict", "-2", 0); if (encoder->context->oformat->flags & AVFMT_GLOBALHEADER) { - encoder->audio->flags |= CODEC_FLAG_GLOBAL_HEADER; + encoder->audio->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; } avcodec_open2(encoder->audio, acodec, &opts); av_dict_free(&opts); @@ -291,7 +291,7 @@ bool FFmpegEncoderOpen(struct FFmpegEnco encoder->video->gop_size = 60; encoder->video->max_b_frames = 3; if (encoder->context->oformat->flags & AVFMT_GLOBALHEADER) { - encoder->video->flags |= CODEC_FLAG_GLOBAL_HEADER; + encoder->video->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; } if (strcmp(vcodec->name, "libx264") == 0) { // Try to adaptively figure out when you can use a slower encoder
signature.asc
Description: OpenPGP digital signature