Ticket #1642: 0006-lavf-segment-set-EXT-X-VERSION-to-3-rather-than-to-4.patch

File 0006-lavf-segment-set-EXT-X-VERSION-to-3-rather-than-to-4.patch, 967 bytes (added by saste, 4 years ago)
  • libavformat/segment.c

    From a74deb1071a4d0c3b0165a22b27d8c81915fad16 Mon Sep 17 00:00:00 2001
    From: Stefano Sabatini <stefasab@gmail.com>
    Date: Sat, 1 Sep 2012 17:13:26 +0200
    Subject: [PATCH] lavf/segment: set EXT-X-VERSION to 3 rather than to 4
    
    There is nothing we use of the latest version, downgrade version number
    to increase decoding support.
    
    Based on this comment by vel2000:
    http://ffmpeg.org/trac/ffmpeg/ticket/1642#comment:17
    ---
     libavformat/segment.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/libavformat/segment.c b/libavformat/segment.c
    index e81e97a..b53afa9 100644
    a b static int segment_list_open(AVFormatContext *s) 
    151151 
    152152    if (seg->list_type == LIST_TYPE_M3U8) { 
    153153        avio_printf(seg->list_pb, "#EXTM3U\n"); 
    154         avio_printf(seg->list_pb, "#EXT-X-VERSION:4\n"); 
     154        avio_printf(seg->list_pb, "#EXT-X-VERSION:3\n"); 
    155155    } 
    156156 
    157157    return ret;