From e25c67108a77b2dbf13de1339b5314d07e3ffa02 Mon Sep 17 00:00:00 2001 From: Jindrich Makovicka Date: Tue, 10 May 2011 15:11:45 +0200 Subject: libx264: handle closed GOP codec flag Also update libx264 presets to keep closed gop as default. Signed-off-by: Jindrich Makovicka Signed-off-by: Anton Khirnov --- libavcodec/libx264.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/libx264.c') diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index bf5cbc501f..e5fac00469 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -298,6 +298,8 @@ static av_cold int X264_init(AVCodecContext *avctx) x4->params.b_interlaced = avctx->flags & CODEC_FLAG_INTERLACED_DCT; + x4->params.b_open_gop = !(avctx->flags & CODEC_FLAG_CLOSED_GOP); + x4->params.i_slice_count = avctx->slices; x4->params.vui.b_fullrange = avctx->pix_fmt == PIX_FMT_YUVJ420P; -- cgit v1.2.3