diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-02-03 11:12:49 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-02-03 11:17:35 +0100 |
commit | 90020d7f4bf2f0f18fca6ba731152886d8c923fd (patch) | |
tree | e05485e3a2f3cc902b62374567c7595172918f10 /libavformat/segment.c | |
parent | c91f1f3f926d4ba36ab051adc447ff56391210c3 (diff) | |
download | ffmpeg-90020d7f4bf2f0f18fca6ba731152886d8c923fd.tar.gz |
lavf/segment: use correct spelling and value for EXT-X-ALLOW-CACHE tag
Replace wrong "EXT-X-ALLOWCACHE" with "EXT-X-ALLOW-CACHE", and value 1/0
with YES/NO, as per spec.
Fix trac ticket #2228.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index 7d7222922c..9c271eb3a8 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -219,8 +219,8 @@ static int segment_list_open(AVFormatContext *s) avio_printf(seg->list_pb, "#EXTM3U\n"); avio_printf(seg->list_pb, "#EXT-X-VERSION:3\n"); avio_printf(seg->list_pb, "#EXT-X-MEDIA-SEQUENCE:%d\n", seg->segment_list_entries->index); - avio_printf(seg->list_pb, "#EXT-X-ALLOWCACHE:%d\n", - !!(seg->list_flags & SEGMENT_LIST_FLAG_CACHE)); + avio_printf(seg->list_pb, "#EXT-X-ALLOW-CACHE:%s\n", + seg->list_flags & SEGMENT_LIST_FLAG_CACHE ? "YES" : "NO"); for (entry = seg->segment_list_entries; entry; entry = entry->next) max_duration = FFMAX(max_duration, entry->end_time - entry->start_time); |