projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
177d256
)
set default preload and max_delay for muxer to avoid mpeg ps muxer to spit many under...
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 21 Jun 2008 03:43:16 +0000
(
03:43
+0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 21 Jun 2008 03:43:16 +0000
(
03:43
+0000)
Originally committed as revision 13850 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
6ab6283
..
90ef807
100644
(file)
--- a/
ffserver.c
+++ b/
ffserver.c
@@
-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");