diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-30 01:46:57 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-30 01:46:57 +0000 |
commit | 3766ed7214411b2306908cbb623f15d952b10c13 (patch) | |
tree | 4202aa1038933250095e50a61d166fb57d6d3ba3 /ffserver.c | |
parent | c1593d0e56c12ea731d14f965b1a99a77c7f9fdb (diff) | |
download | ffmpeg-3766ed7214411b2306908cbb623f15d952b10c13.tar.gz |
log error when writing frame to output
Originally committed as revision 13548 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index acce0b3407..eb60deb775 100644 --- 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; |