changeset 568:256f7b271bdc libavformat

report keyframes
author alex
date Mon, 18 Oct 2004 11:42:40 +0000
parents 23b915bb10f5
children aca10aa7686f
files flvdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;
 }