diff options
-rw-r--r-- | libavformat/flvdec.c | 4 |
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; } |