aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-21 02:39:53 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-01-19 00:23:36 +0100
commit1de369a632c49449d71ecfe251599f840d3f8b63 (patch)
tree24e87c361e296f9878201e7df5c06dcdfaf61b09 /libavformat
parentd4890c10680edaeccd7a186467b59930ef922d26 (diff)
downloadffmpeg-1de369a632c49449d71ecfe251599f840d3f8b63.tar.gz
lavf/segment: remove now unused field list_max_segment_time
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/segment.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 7f11bd20d6..3e85870732 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -70,7 +70,6 @@ typedef struct {
char *list; ///< filename for the segment list file
int list_flags; ///< flags affecting list generation
int list_size; ///< number of entries for the segment list file
- double list_max_segment_time; ///< max segment time in the current list
ListType list_type; ///< set the list type
AVIOContext *list_pb; ///< list file put-byte context
char *time_str; ///< segment duration specification string
@@ -212,7 +211,6 @@ static int segment_list_open(AVFormatContext *s)
&s->interrupt_callback, NULL);
if (ret < 0)
return ret;
- seg->list_max_segment_time = 0;
if (seg->list_type == LIST_TYPE_M3U8 && seg->segment_list_entries) {
SegmentListEntry *entry;
@@ -306,8 +304,6 @@ static int segment_end(AVFormatContext *s, int write_trailer)
avio_printf(seg->list_pb, "#EXT-X-ENDLIST\n");
} else {
segment_list_print_entry(seg->list_pb, seg->list_type, &seg->cur_entry);
- seg->list_max_segment_time =
- FFMAX(seg->cur_entry.end_time - seg->cur_entry.start_time, seg->list_max_segment_time);
}
avio_flush(seg->list_pb);
}