summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-04-25 22:58:08 +0100
committerCarl Hetherington <cth@carlh.net>2018-04-25 22:58:08 +0100
commit154ed362f541b018b6aca2a76e2e94dbfffa9d87 (patch)
tree24e10c14aef0526b1910b68d9433778a1150d6ce /src/lib/ffmpeg_encoder.cc
parentafbf20b09511674ecb1db2d477236617270e556c (diff)
Fix for new FFmpeg.
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 7e51ba19f..e55622abf 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