diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-26 14:57:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-26 14:57:56 +0200 |
commit | ba323d67fa5554e83a907ac81b623c0539e37e03 (patch) | |
tree | c65a104f5eac4e2660799e6e9e2706c50d7f5271 /libavformat | |
parent | eba33396f007dc373678adea6c1a4b1a50373263 (diff) |
avformat/write_packet: drop disabled code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mux.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index eba4ec3c5a..28e3060afd 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -529,23 +529,6 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) av_assert2(pkt->dts == AV_NOPTS_VALUE || pkt->dts >= 0); } - if (!(s->oformat->flags & (AVFMT_TS_NEGATIVE | AVFMT_NOTIMESTAMPS)) && 0) { - AVRational time_base = s->streams[pkt->stream_index]->time_base; - int64_t offset = 0; - - if (!s->offset && pkt->dts != AV_NOPTS_VALUE && pkt->dts < 0) { - s->offset = -pkt->dts; - s->offset_timebase = time_base; - } - if (s->offset) - offset = av_rescale_q(s->offset, s->offset_timebase, time_base); - - if (pkt->dts != AV_NOPTS_VALUE) - pkt->dts += offset; - if (pkt->pts != AV_NOPTS_VALUE) - pkt->pts += offset; - } - did_split = av_packet_split_side_data(pkt); ret = s->oformat->write_packet(s, pkt); if (s->flush_packets && s->pb && s->pb->error >= 0) |