diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c index 971ce1be8244853af8543554e228278c87b8ed5c..1c87ae3b231714d38c03c2fa9a992771891b3dd7 100644 --- a/libavcodec/flashsvenc.c +++ b/libavcodec/flashsvenc.c @@ -275,7 +275,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt, avctx->coded_frame->key_frame = 0; } - if (avctx->coded_frame->key_frame) + if (I_frame) pkt->flags |= AV_PKT_FLAG_KEY; *got_packet = 1;