utvideo: mark output picture as keyframe.
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 24 Mar 2012 18:54:31 +0000 (19:54 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 24 Mar 2012 19:21:33 +0000 (20:21 +0100)
Spotted by Антон.

libavcodec/utvideo.c

index 884b16e..ebde38d 100644 (file)
@@ -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;