summaryrefslogtreecommitdiff
path: root/libavcodec/sunrastenc.c
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2012-02-18 01:38:01 +0530
committerAnton Khirnov <anton@khirnov.net>2012-02-19 15:54:27 +0100
commit1a58daed0f3450656a52766bea65c82d0e855b6b (patch)
tree673bbc4eb9f5a8ddcbbfccbcd5ecae83347a8774 /libavcodec/sunrastenc.c
parent445a7d48b13c8c6607b69156233fc8d5fed3b396 (diff)
sunrastenc: set keyframe flag for the output packet.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/sunrastenc.c')
-rw-r--r--libavcodec/sunrastenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/sunrastenc.c b/libavcodec/sunrastenc.c
index 21d6fc47a0..a9b4749758 100644
--- a/libavcodec/sunrastenc.c
+++ b/libavcodec/sunrastenc.c
@@ -199,6 +199,7 @@ static int sunrast_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
AV_WB32(&avpkt->data[16], s->length);
*got_packet_ptr = 1;
+ avpkt->flags |= AV_PKT_FLAG_KEY;
avpkt->size = bytestream2_tell_p(&s->p);
return 0;
}