提交 91f9b657 编写于 作者: V Vittorio Giovara

flashsvenc: Keep coded_frame.key_frame a write-only variable

上级 75c1ed2e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册