Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhwren <hwrenx@126.com>2018-10-18 18:02:10 +0300
committerJun Zhao <jun.zhao@intel.com>2018-10-28 09:20:29 +0300
commitc00ed8d0e7bd5917dc096245e6a37ae0149d8b54 (patch)
tree550d85dfe42ffa3fcfc35bcecdad20042a671bda
parent4c23262811068439b359071c959c1fe77d116ff1 (diff)
lavc/libxavs2: enable OpenGop
Signed-off-by: hwren <hwrenx@126.com>
-rw-r--r--libavcodec/libxavs2.c2
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;