From d08f4bcbbd6b50387729ef9666de13bbac909945 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 18 Oct 2004 11:42:40 +0000 Subject: [PATCH] report keyframes Originally committed as revision 3608 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 990af84ab6..48d1719c5c 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -151,6 +151,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->size = ret; pkt->pts = pts; pkt->stream_index = st->index; + + if (!is_audio && ((flags >> 4)==1)) + pkt->flags |= PKT_FLAG_KEY; + return ret; }