diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2018-06-01 16:14:02 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2018-06-02 00:41:44 +0530 |
commit | 841c1efc78ace70497187d984adf31c7cc2cd7b6 (patch) | |
tree | 77ec2317c7294ef559282ac328981e385d8c2199 /libavcodec/libx265.c | |
parent | 5205b3289e46b680c314e44a9243929b6d00146a (diff) | |
download | ffmpeg-841c1efc78ace70497187d984adf31c7cc2cd7b6.tar.gz |
lavc/libx265: allow users to set closed GOP via generic lavc flag
lavc flag 'cgop' can be used to set closed GOP.
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r-- | libavcodec/libx265.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index c208c0f2d3..bb457dfe5a 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -114,6 +114,7 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx) ctx->params->sourceWidth = avctx->width; ctx->params->sourceHeight = avctx->height; ctx->params->bEnablePsnr = !!(avctx->flags & AV_CODEC_FLAG_PSNR); + ctx->params->bOpenGOP = !(avctx->flags & AV_CODEC_FLAG_CLOSED_GOP); /* Tune the CTU size based on input resolution. */ if (ctx->params->sourceWidth < 64 || ctx->params->sourceHeight < 64) |