diff flvdec.c @ 568:256f7b271bdc libavformat

report keyframes
author alex
date Mon, 18 Oct 2004 11:42:40 +0000
parents 0fdc96c2f2fe
children 7dbdbe073bcd
line wrap: on
line diff
--- a/flvdec.c	Mon Oct 18 09:43:39 2004 +0000
+++ b/flvdec.c	Mon Oct 18 11:42:40 2004 +0000
@@ -151,6 +151,10 @@
     pkt->size = ret;
     pkt->pts = pts;
     pkt->stream_index = st->index;
+    
+    if (!is_audio && ((flags >> 4)==1))
+	pkt->flags |= PKT_FLAG_KEY;
+    
     return ret;
 }