[FFmpeg-cvslog] avformat/hlsenc: correct log text and supply packet details

Gyan Doshi git at videolan.org
Wed May 5 17:58:21 EEST 2021


ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Wed May  5 20:43:13 2021 +0530| [8ab2bb81b2318c8baff61fa534400b5e5244c387] | committer: Gyan Doshi

avformat/hlsenc: correct log text and supply packet details

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

 libavformat/hlsenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 9d9f0c03d4..c43d02c26a 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2471,7 +2471,8 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
             if (pkt->duration) {
                 vs->duration += (double)(pkt->duration) * st->time_base.num / st->time_base.den;
             } else {
-                av_log(s, AV_LOG_WARNING, "pkt->duration = 0, maybe the hls segment duration will not precise\n");
+                av_log(s, AV_LOG_WARNING, "Stream %d packet with pts %" PRId64 " has duration 0. The segment duration may not be precise.\n",
+                       pkt->stream_index, pkt->pts);
                 vs->duration = (double)(pkt->pts - vs->end_pts) * st->time_base.num / st->time_base.den;
             }
         }



More information about the ffmpeg-cvslog mailing list