Ticket #8825: 0002-avformat-webvttdec-Change-prefer_hls_mpegts_pts-into.2.patch

File 0002-avformat-webvttdec-Change-prefer_hls_mpegts_pts-into.2.patch, 1.5 KB (added by giwiniswut, 6 years ago)

.

  • libavformat/webvttdec.c

    From 89c3a28c9284c399cccc98ad711a1deb66baada2 Mon Sep 17 00:00:00 2001
    From: Sebastian Zeller <SebiderSushi@t-online.de>
    Date: Tue, 5 Jan 2021 07:10:06 +0100
    Subject: [PATCH 2/3] avformat/webvttdec: Change prefer_hls_mpegts_pts into a
     boolean option
    
    ---
     libavformat/webvttdec.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
    index 3e71517509..c6acf8e5bb 100644
    a b static const AVOption options[] = {  
    243243        { "captions",     "WebVTT captions kind",     0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_CAPTIONS },     INT_MIN, INT_MAX, KIND_FLAGS, "webvtt_kind" },
    244244        { "descriptions", "WebVTT descriptions kind", 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_DESCRIPTIONS }, INT_MIN, INT_MAX, KIND_FLAGS, "webvtt_kind" },
    245245        { "metadata",     "WebVTT metadata kind",     0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_METADATA },     INT_MIN, INT_MAX, KIND_FLAGS, "webvtt_kind" },
    246     { "prefer_hls_mpegts_pts", "Use WebVTT embedded HLS MPEGTS timestamps if available.", OFFSET(prefer_hls_mpegts_pts), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM },
     246    { "prefer_hls_mpegts_pts", "Use WebVTT embedded HLS MPEGTS timestamps if available.", OFFSET(prefer_hls_mpegts_pts), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM, NULL },
    247247    { NULL }
    248248};
    249249