aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-03-24 19:54:31 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-03-24 20:21:33 +0100
commit72dadaa9579faaf94de8df13442f84a09c09594e (patch)
tree1183bcb1582ee2fdd7e6cf069400dd2f237de254
parentcc965300cb504ce452df1d37041b81c6ee6a5964 (diff)
downloadffmpeg-72dadaa9579faaf94de8df13442f84a09c09594e.tar.gz
utvideo: mark output picture as keyframe.
Spotted by Антон.
-rw-r--r--libavcodec/utvideo.c2
1 files changed, 2 insertions, 0 deletions
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;