Video: Fix x264 tune option

This commit is contained in:
Jeffrey Pfau 2014-11-14 03:26:10 -08:00
parent 793f552f43
commit 8607275f9f
1 changed files with 1 additions and 1 deletions

View File

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