[FFmpeg-cvslog] lavf/segment: drop pointless variable oc from seg_write_packet()

Stefano Sabatini git at videolan.org
Tue Jan 21 20:10:54 CET 2014


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Jan 21 20:06:49 2014 +0100| [f57baf743f0e69f3db54ae7b8e5b79d5ab35fb6e] | committer: Stefano Sabatini

lavf/segment: drop pointless variable oc from seg_write_packet()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f57baf743f0e69f3db54ae7b8e5b79d5ab35fb6e
---

 libavformat/segment.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index bf5f4fb..ad313a3 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)



More information about the ffmpeg-cvslog mailing list