summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-05-21 23:30:36 +0100
committerCarl Hetherington <cth@carlh.net>2018-05-21 23:30:36 +0100
commit5003c20e6c4adcc2d58a292082186c8d3b625d88 (patch)
tree0f95373cdddc0e487c4f879c1579b6bcac767d7d /src/lib/ffmpeg_encoder.cc
parent1e1dc6d6d15a5c20d61fd084fa305162c93f47c9 (diff)
Try some forward-compatibility build fixes for newer FFmpegs.
Diffstat (limited to 'src/lib/ffmpeg_encoder.cc')
-rw-r--r--src/lib/ffmpeg_encoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc
index a8a033990..e4f258368 100644
--- a/src/lib/ffmpeg_encoder.cc
+++ b/src/lib/ffmpeg_encoder.cc
@@ -123,7 +123,7 @@ FFmpegEncoder::setup_video ()
_video_codec_context->height = _film->frame_size().height;
_video_codec_context->time_base = (AVRational) { 1, _film->video_frame_rate() };
_video_codec_context->pix_fmt = _pixel_format;
- _video_codec_context->flags |= CODEC_FLAG_QSCALE | CODEC_FLAG_GLOBAL_HEADER;
+ _video_codec_context->flags |= AV_CODEC_FLAG_QSCALE | AV_CODEC_FLAG_GLOBAL_HEADER;
}
void