diff options
author | hwren <hwrenx@126.com> | 2018-10-18 23:02:10 +0800 |
---|---|---|
committer | Jun Zhao <jun.zhao@intel.com> | 2018-10-28 14:20:29 +0800 |
commit | c00ed8d0e7bd5917dc096245e6a37ae0149d8b54 (patch) | |
tree | 550d85dfe42ffa3fcfc35bcecdad20042a671bda /libavcodec/libxavs2.c | |
parent | 4c23262811068439b359071c959c1fe77d116ff1 (diff) | |
download | ffmpeg-c00ed8d0e7bd5917dc096245e6a37ae0149d8b54.tar.gz |
lavc/libxavs2: enable OpenGop
Signed-off-by: hwren <hwrenx@126.com>
Diffstat (limited to 'libavcodec/libxavs2.c')
-rw-r--r-- | libavcodec/libxavs2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index f07fc635af..822af3fddc 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -91,7 +91,7 @@ static av_cold int xavs2_init(AVCodecContext *avctx) xavs2_opt_set2("ThreadFrames", "%d", avctx->thread_count); xavs2_opt_set2("ThreadRows", "%d", cae->lcu_row_threads); - xavs2_opt_set2("OpenGOP", "%d", 1); + xavs2_opt_set2("OpenGOP", "%d", !(avctx->flags & AV_CODEC_FLAG_CLOSED_GOP)); if (cae->xavs2_opts) { AVDictionary *dict = NULL; |