summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2016-11-04 19:54:48 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-19 02:15:27 +0100
commit4696f7639b22c9205792d2e3d5e8e07b3cadbb63 (patch)
tree593d74f167608ffbe29fb6ce03d9ca2f8b460984 /libavformat/flvdec.c
parent7289aa2d71a892685b05eede8705fbc05f50dcb4 (diff)
avformat/flvdec: add debug message to list keyframes index metadata
when parsing keyframe index metadata, list the message by trace log Signed-off-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index e53c3459ae..3812994032 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -114,6 +114,8 @@ static void add_keyframes_index(AVFormatContext *s)
if (stream->nb_index_entries == 0) {
for (i = 0; i < flv->keyframe_count; i++) {
+ av_log(s, AV_LOG_TRACE, "keyframe filepositions = %"PRId64" times = %"PRId64"\n",
+ flv->keyframe_filepositions[i], flv->keyframe_times[i] * 1000);
av_add_index_entry(stream, flv->keyframe_filepositions[i],
flv->keyframe_times[i] * 1000, 0, 0, AVINDEX_KEYFRAME);
}