mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
sunrastenc: set keyframe flag for the output packet.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
445a7d48b1
commit
1a58daed0f
@ -199,6 +199,7 @@ static int sunrast_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
AV_WB32(&avpkt->data[16], s->length);
|
AV_WB32(&avpkt->data[16], s->length);
|
||||||
|
|
||||||
*got_packet_ptr = 1;
|
*got_packet_ptr = 1;
|
||||||
|
avpkt->flags |= AV_PKT_FLAG_KEY;
|
||||||
avpkt->size = bytestream2_tell_p(&s->p);
|
avpkt->size = bytestream2_tell_p(&s->p);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user