avformat/flvdec: add debug message to list keyframes index metadata
authorSteven Liu <lq@chinaffmpeg.org>
Fri, 4 Nov 2016 11:54:48 +0000 (19:54 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 19 Nov 2016 01:15:27 +0000 (02:15 +0100)
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>
libavformat/flvdec.c

index e53c345..3812994 100644 (file)
@@ -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);
         }