aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2021-05-05 20:25:13 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2021-05-05 20:26:38 +0530
commit8ab2bb81b2318c8baff61fa534400b5e5244c387 (patch)
treee272328f6ad5800566c95944d194b508a1846d66 /libavformat
parent4fda451c9f2dda4ced8cff92cd7c5387550dad83 (diff)
downloadffmpeg-8ab2bb81b2318c8baff61fa534400b5e5244c387.tar.gz
avformat/hlsenc: correct log text and supply packet details
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}