[FFmpeg-cvslog] segment: Report the current media sequence

Luca Barbato git at videolan.org
Wed Apr 30 20:37:18 CEST 2014


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Apr 29 10:28:11 2014 +0200| [87a3ea3192bf5e4aafa08bca8686a2b577eae818] | committer: Luca Barbato

segment: Report the current media sequence

Useful for debugging mostly.

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

 libavformat/segment.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 390263c..3e0eb39 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -95,6 +95,9 @@ static int segment_hls_window(AVFormatContext *s, int last)
     avio_printf(seg->pb, "#EXT-X-MEDIA-SEQUENCE:%d\n",
                 FFMAX(0, seg->number - seg->size));
 
+    av_log(s, AV_LOG_VERBOSE, "EXT-X-MEDIA-SEQUENCE:%d\n",
+           FFMAX(0, seg->number - seg->size));
+
     for (i = FFMAX(0, seg->number - seg->size);
          i < seg->number; i++) {
         avio_printf(seg->pb, "#EXTINF:%d,\n", (int)seg->time);



More information about the ffmpeg-cvslog mailing list