[FFmpeg-cvslog] utvideo: mark output picture as keyframe.

Kostya Shishkov git at videolan.org
Sun Mar 25 03:10:31 CEST 2012


ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Sat Mar 24 19:54:31 2012 +0100| [72dadaa9579faaf94de8df13442f84a09c09594e] | committer: Kostya Shishkov

utvideo: mark output picture as keyframe.

Spotted by Антон.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72dadaa9579faaf94de8df13442f84a09c09594e
---

 libavcodec/utvideo.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c
index 884b16e..ebde38d 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;
 



More information about the ffmpeg-cvslog mailing list