OSDN Git Service

avcodec/truemotion2rt: also export key frame info
authorPaul B Mahol <onemda@gmail.com>
Sun, 22 May 2016 21:32:38 +0000 (23:32 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 22 May 2016 21:32:38 +0000 (23:32 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/truemotion2rt.c

index ef0e2cb..49f2114 100644 (file)
@@ -203,6 +203,7 @@ static int decode_frame(AVCodecContext *avctx,
     }
 
     p->pict_type = AV_PICTURE_TYPE_I;
+    p->key_frame = 1;
     *got_frame   = 1;
 
     return buf_size;