From 72dadaa9579faaf94de8df13442f84a09c09594e Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 24 Mar 2012 19:54:31 +0100 Subject: utvideo: mark output picture as keyframe. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spotted by Антон. --- libavcodec/utvideo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/utvideo.c') diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c index 884b16e9be..ebde38de17 100644 --- a/libavcodec/utvideo.c +++ b/libavcodec/utvideo.c @@ -492,6 +492,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac break; } + c->pic.key_frame = 1; + c->pic.pict_type = AV_PICTURE_TYPE_I; *data_size = sizeof(AVFrame); *(AVFrame*)data = c->pic; -- cgit v1.2.3