]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flashsvenc.c
Merge commit '91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf'
[ffmpeg] / libavcodec / flashsvenc.c
index acbc13482aa46f367092bf666f7dec9cd0a1d174..f56a99589503869e062b0f8057425419fd0c084e 100644 (file)
@@ -271,7 +271,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;