[FFmpeg-cvslog] sunrastenc: set keyframe flag for the output packet.
Aneesh Dogra
git at videolan.org
Mon Feb 20 01:42:26 CET 2012
ffmpeg | branch: master | Aneesh Dogra <lionaneesh at gmail.com> | Sat Feb 18 01:56:01 2012 +0530| [1a58daed0f3450656a52766bea65c82d0e855b6b] | committer: Anton Khirnov
sunrastenc: set keyframe flag for the output packet.
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a58daed0f3450656a52766bea65c82d0e855b6b
---
libavcodec/sunrastenc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/sunrastenc.c b/libavcodec/sunrastenc.c
index 21d6fc4..a9b4749 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;
}
More information about the ffmpeg-cvslog
mailing list