diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 3925768fef..8fd5d29431 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -562,7 +562,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) return AVERROR(EINVAL); } - ts = pkt->dts + flv->delay; // add delay to force positive dts + ts = pkt->dts; if (s->event_flags & AVSTREAM_EVENT_FLAG_METADATA_UPDATED) { write_metadata(s, ts);