OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1593d0
)
log error when writing frame to output
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 30 May 2008 01:46:57 +0000
(
01:46
+0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 30 May 2008 01:46:57 +0000
(
01:46
+0000)
Originally committed as revision 13548 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
acce0b3
..
eb60deb
100644
(file)
--- a/
ffserver.c
+++ b/
ffserver.c
@@
-2176,8
+2176,10
@@
static int http_prepare_data(HTTPContext *c)
pkt.pts = av_rescale_q(pkt.pts,
c->fmt_in->streams[source_index]->time_base,
ctx->streams[pkt.stream_index]->time_base);
- if (av_write_frame(ctx, &pkt))
+ if (av_write_frame(ctx, &pkt) < 0) {
+ http_log("Error writing frame to output\n");
c->state = HTTPSTATE_SEND_DATA_TRAILER;
+ }
len = url_close_dyn_buf(ctx->pb, &c->pb_buffer);
c->cur_frame_bytes = len;