You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-25 14:23:15 +02:00
flashsvenc: Keep coded_frame.key_frame a write-only variable
This commit is contained in:
@ -275,7 +275,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
avctx->coded_frame->key_frame = 0;
|
avctx->coded_frame->key_frame = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avctx->coded_frame->key_frame)
|
if (I_frame)
|
||||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||||
*got_packet = 1;
|
*got_packet = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user