On Tue, 29 Apr 2014, Luca Barbato wrote:

Useful for debugging mostly.
---
libavformat/hlsenc.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index f9e9678..edf9601 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -146,6 +146,9 @@ static int hls_window(AVFormatContext *s, int last)
    avio_printf(hls->pb, "#EXT-X-MEDIA-SEQUENCE:%"PRId64"\n",
                FFMAX(0, hls->sequence - hls->size));

+    av_log(s, AV_LOG_VERBOSE, "EXT-X-MEDIA-SEQUENCE:%"PRId64"\n",
+           FFMAX(0, hls->sequence - hls->size));
+
    for (en = hls->list; en; en = en->next) {
        avio_printf(hls->pb, "#EXTINF:%d,\n", en->duration);
        avio_printf(hls->pb, "%s\n", en->name);
--
1.8.5.2 (Apple Git-48)

Probably ok; the value could maybe be factorized into a variable to avoid duplicating the FFMAX() logic (which you later change in patch #2), but either way is ok.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to