Video: Fix x264 tune option
Jeffrey Pfau jeffrey@endrift.com
Fri, 14 Nov 2014 03:26:10 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/ffmpeg/ffmpeg-encoder.c
→
src/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();