summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-12-10 20:11:28 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-12-13 09:42:15 +0100
commit93f08827253ceb3683a9daecd3d3aa4592f2cca7 (patch)
tree13c862e9914c1320027b415baa2328eea74e0d43 /ffserver.c
parentbed4eeab3304e3f51d2db8b224cc8966eee0acca (diff)
ffserver: improve error feedback in case of av_write_frame() error
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffserver.c b/ffserver.c
index 4d656b04ff..e67f67a250 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2455,8 +2455,9 @@ static int http_prepare_data(HTTPContext *c)
if (pkt.pts != AV_NOPTS_VALUE)
pkt.pts = av_rescale_q(pkt.pts, ist->time_base, ost->time_base);
pkt.duration = av_rescale_q(pkt.duration, ist->time_base, ost->time_base);
- if (av_write_frame(ctx, &pkt) < 0) {
- http_log("Error writing frame to output\n");
+ if ((ret = av_write_frame(ctx, &pkt)) < 0) {
+ http_log("Error writing frame to output for stream '%s': %s\n",
+ c->stream->filename, av_err2str(ret));
c->state = HTTPSTATE_SEND_DATA_TRAILER;
}