mirror of https://github.com/mgba-emu/mgba.git
Video: Fix x264 tune option
This commit is contained in:
parent
793f552f43
commit
8607275f9f
|
@ -234,7 +234,7 @@ bool FFmpegEncoderOpen(struct FFmpegEncoder* encoder, const char* outfile) {
|
|||
encoder->video->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
||||
}
|
||||
if (strcmp(vcodec->name, "libx264") == 0) {
|
||||
av_opt_set(encoder->video, "tune", "zerolatency", 0);
|
||||
av_opt_set(encoder->video->priv_data, "tune", "zerolatency", 0);
|
||||
}
|
||||
avcodec_open2(encoder->video, vcodec, 0);
|
||||
encoder->videoFrame = av_frame_alloc();
|
||||
|
|
Loading…
Reference in New Issue