Ticket #2228: patchallowcache.diff

File patchallowcache.diff, 858 bytes (added by cehoyos, 4 years ago)
  • libavformat/segment.c

    diff --git a/libavformat/segment.c b/libavformat/segment.c
    index 7d72229..9c271eb 100644
    a b static int segment_list_open(AVFormatContext *s) 
    219219        avio_printf(seg->list_pb, "#EXTM3U\n"); 
    220220        avio_printf(seg->list_pb, "#EXT-X-VERSION:3\n"); 
    221221        avio_printf(seg->list_pb, "#EXT-X-MEDIA-SEQUENCE:%d\n", seg->segment_list_entries->index); 
    222         avio_printf(seg->list_pb, "#EXT-X-ALLOWCACHE:%d\n", 
    223                     !!(seg->list_flags & SEGMENT_LIST_FLAG_CACHE)); 
     222        avio_printf(seg->list_pb, "#EXT-X-ALLOW-CACHE:%s\n", 
     223                    seg->list_flags & SEGMENT_LIST_FLAG_CACHE ? "YES" : "NO"); 
    224224 
    225225        for (entry = seg->segment_list_entries; entry; entry = entry->next) 
    226226            max_duration = FFMAX(max_duration, entry->end_time - entry->start_time);