summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2004-10-18 11:42:40 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2004-10-18 11:42:40 +0000
commitd08f4bcbbd6b50387729ef9666de13bbac909945 (patch)
tree668ac3a4cb68999501a03bb8d26c34715e18bdd6
parent595bf4ef63fc9a4d863b5ecc53605640301f2273 (diff)
report keyframes
Originally committed as revision 3608 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/flvdec.c4
1 files changed, 4 insertions, 0 deletions
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;
}