diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-24 23:22:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-24 23:22:33 +0200 |
commit | 66ae994c544a46e4f6915222d8608b3d87b39b07 (patch) | |
tree | ba15c15f3a360ea97f4a44c1ba566fbb23aaca50 /libavformat/segment.c | |
parent | 351b22caae65ad5c5d2deb3815d79d032eb04385 (diff) | |
download | ffmpeg-66ae994c544a46e4f6915222d8608b3d87b39b07.tar.gz |
avformat/segment: re-interleave packets if needed
Fixes part of Ticket 3797
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index cae0f114a5..ce784da225 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -766,7 +766,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(seg->avf, pkt->stream_index, pkt, s, 0); + ret = ff_write_chained(seg->avf, pkt->stream_index, pkt, s, seg->initial_offset || seg->reset_timestamps); fail: if (pkt->stream_index == seg->reference_stream_index) { |