diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-12-10 20:11:28 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-13 09:42:15 +0100 |
commit | 93f08827253ceb3683a9daecd3d3aa4592f2cca7 (patch) | |
tree | 13c862e9914c1320027b415baa2328eea74e0d43 /ffserver.c | |
parent | bed4eeab3304e3f51d2db8b224cc8966eee0acca (diff) | |
download | ffmpeg-93f08827253ceb3683a9daecd3d3aa4592f2cca7.tar.gz |
ffserver: improve error feedback in case of av_write_frame() error
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 5 |
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; } |