From 930406325c2973b02b5bb0dc28e09947bea84053 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 26 Sep 2013 03:09:29 +0200 Subject: [PATCH] avformat/mpegenc: Better default for max_delay Signed-off-by: Michael Niedermayer --- libavformat/mpegenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index c3e1b0d40f..47a7cedfe1 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -321,7 +321,7 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx) } else s->packet_size = 2048; if (ctx->max_delay < 0) /* Not set by the caller */ - ctx->max_delay = 0; + ctx->max_delay = 0.7*AV_TIME_BASE; s->vcd_padding_bytes_written = 0; s->vcd_padding_bitrate=0;