all repos — mgba @ 8607275f9f60372a8c551f7b9d77e460416c0183

mGBA Game Boy Advance Emulator

Video: Fix x264 tune option
Jeffrey Pfau jeffrey@endrift.com
Fri, 14 Nov 2014 03:26:10 -0800
commit

8607275f9f60372a8c551f7b9d77e460416c0183

parent

793f552f43df026d498a50886a833d77d57e2dde

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

jump to
M src/platform/ffmpeg/ffmpeg-encoder.csrc/platform/ffmpeg/ffmpeg-encoder.c

@@ -234,7 +234,7 @@ if (encoder->context->oformat->flags & AVFMT_GLOBALHEADER) {

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