[FFmpeg-cvslog] lavc/libxavs2: enable OpenGop
hwren
git at videolan.org
Sun Oct 28 09:19:25 EET 2018
ffmpeg | branch: master | hwren <hwrenx at 126.com> | Thu Oct 18 23:02:10 2018 +0800| [c00ed8d0e7bd5917dc096245e6a37ae0149d8b54] | committer: Jun Zhao
lavc/libxavs2: enable OpenGop
Signed-off-by: hwren <hwrenx at 126.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c00ed8d0e7bd5917dc096245e6a37ae0149d8b54
---
libavcodec/libxavs2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list