From 1a392fc550fde58948bd7b188c7a98d534aefadb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 27 Apr 2013 16:04:25 +0200 Subject: ffv1: Store a flag in the global header that indicates if all frames are keyframes Signed-off-by: Michael Niedermayer --- libavcodec/ffv1enc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/ffv1enc.c') diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 70fcd65852..d897dc4128 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -534,7 +534,7 @@ static int write_extradata(FFV1Context *f) put_symbol(c, state, f->version, 0); if (f->version > 2) { if (f->version == 3) - f->minor_version = 2; + f->minor_version = 3; put_symbol(c, state, f->minor_version, 0); } @@ -575,6 +575,7 @@ static int write_extradata(FFV1Context *f) if (f->version > 2) { put_symbol(c, state, f->ec, 0); + put_symbol(c, state, f->intra = (f->avctx->gop_size < 2), 0); } f->avctx->extradata_size = ff_rac_terminate(c); -- cgit v1.2.3