ffmpeg | branch: master | hwren <hwr...@126.com> | Thu Oct 18 23:02:10 2018 +0800| [c00ed8d0e7bd5917dc096245e6a37ae0149d8b54] | committer: Jun Zhao
lavc/libxavs2: enable OpenGop Signed-off-by: hwren <hwr...@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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog