diff --git a/libavformat/mux.c b/libavformat/mux.c index 37fe19358d..b2b5be63b4 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -951,6 +951,7 @@ int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *pkt, if (s->max_interleave_delta > 0 && si->packet_buffer.head && + si->packet_buffer.head->pkt.dts != AV_NOPTS_VALUE && !flush && si->nb_interleaved_streams == stream_count+noninterleaved_count ) {