diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2014-01-21 20:06:49 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2014-01-21 20:08:36 +0100 |
commit | f57baf743f0e69f3db54ae7b8e5b79d5ab35fb6e (patch) | |
tree | c512415780780232f86e12573bf13a21ea977507 | |
parent | 169065fbfb3da1ab776379c333aebc54bb1f1bc4 (diff) | |
download | ffmpeg-f57baf743f0e69f3db54ae7b8e5b79d5ab35fb6e.tar.gz |
lavf/segment: drop pointless variable oc from seg_write_packet()
-rw-r--r-- | libavformat/segment.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index bf5f4fb407..ad313a316f 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -657,7 +657,6 @@ fail: static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) { SegmentContext *seg = s->priv_data; - AVFormatContext *oc = seg->avf; AVStream *st = s->streams[pkt->stream_index]; int64_t end_pts = INT64_MAX, offset; int start_frame = INT_MAX; @@ -690,8 +689,6 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) if ((ret = segment_start(s, seg->individual_header_trailer)) < 0) goto fail; - oc = seg->avf; - seg->cur_entry.index = seg->segment_idx; seg->cur_entry.start_time = (double)pkt->pts * av_q2d(st->time_base); seg->cur_entry.start_pts = av_rescale_q(pkt->pts, st->time_base, AV_TIME_BASE_Q); @@ -725,7 +722,7 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base), av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &st->time_base)); - ret = ff_write_chained(oc, pkt->stream_index, pkt, s); + ret = ff_write_chained(seg->avf, pkt->stream_index, pkt, s); fail: if (pkt->stream_index == seg->reference_stream_index) |