git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595bf4e
)
report keyframes
author
Alex Beregszaszi
<alex@rtfs.hu>
Mon, 18 Oct 2004 11:42:40 +0000
(11:42 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Mon, 18 Oct 2004 11:42:40 +0000
(11:42 +0000)
Originally committed as revision 3608 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flvdec.c
b/libavformat/flvdec.c
index
990af84
..
48d1719
100644
(file)
--- 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;
}