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

Michael Niedermayer michael at niedermayer.cc
Fri Nov 4 13:26:47 EET 2016


On Fri, Nov 04, 2016 at 04:08:14PM +0800, Steven Liu wrote:
> when parsing keyframe index metadata, list the message by debug log
> 
> Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> ---
>  libavformat/flvdec.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
> index e53c345..e2a4669 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_DEBUG, "keyframe filepositions = %"PRId64" times = %"PRId64"\n",
> +                   flv->keyframe_filepositions[i], flv->keyframe_times[i] * 1000);

i think this should be AV_LOG_TRACE

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161104/18a43fa1/attachment.sig>


More information about the ffmpeg-devel mailing list