OSDN Git Service

v210enc: do not set coded_frame->key_frame
authorPaul B Mahol <onemda@gmail.com>
Sun, 5 Feb 2012 21:14:35 +0000 (21:14 +0000)
committerAnton Khirnov <anton@khirnov.net>
Mon, 6 Feb 2012 06:59:24 +0000 (07:59 +0100)
It is already set in avcodec_alloc_frame().

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/v210enc.c

index 069f915..6266bb9 100644 (file)
@@ -44,7 +44,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
     if (!avctx->coded_frame)
         return AVERROR(ENOMEM);
 
-    avctx->coded_frame->key_frame = 1;
     avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
 
     return 0;