Commit 91af1627 authored by bcoudurier's avatar bcoudurier

set default preload and max_delay for muxer to avoid mpeg ps muxer to spit...

set default preload and max_delay for muxer to avoid mpeg ps muxer to spit many underflow errors, use ffmpeg default values

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13850 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2b9c040d
......@@ -2032,6 +2032,14 @@ static int http_prepare_data(HTTPContext *c)
}
c->fmt_ctx.pb->is_streamed = 1;
/*
* HACK to avoid mpeg ps muxer to spit many underflow errors
* Default value from FFmpeg
* Try to set it use configuration option
*/
c->fmt_ctx.preload = (int)(0.5*AV_TIME_BASE);
c->fmt_ctx.max_delay = (int)(0.7*AV_TIME_BASE);
av_set_parameters(&c->fmt_ctx, NULL);
if (av_write_header(&c->fmt_ctx) < 0) {
http_log("Error writing output header\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment