[FFmpeg-cvslog] avformat/flvdec: add debug message to list keyframes index metadata

Steven Liu git at videolan.org
Sat Nov 19 03:16:40 EET 2016


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Fri Nov  4 19:54:48 2016 +0800| [4696f7639b22c9205792d2e3d5e8e07b3cadbb63] | committer: Michael Niedermayer

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 at chinaffmpeg.org>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4696f7639b22c9205792d2e3d5e8e07b3cadbb63
---

 libavformat/flvdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index e53c345..3812994 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);
         }



More information about the ffmpeg-cvslog mailing list