[FFmpeg-cvslog] ffserver: improve error feedback in case of av_write_frame() error

Stefano Sabatini git at videolan.org
Fri Dec 13 09:46:51 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Dec 10 20:11:28 2013 +0100| [93f08827253ceb3683a9daecd3d3aa4592f2cca7] | committer: Stefano Sabatini

ffserver: improve error feedback in case of av_write_frame() error

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=93f08827253ceb3683a9daecd3d3aa4592f2cca7
---

 ffserver.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index 4d656b0..e67f67a 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;
                     }
 



More information about the ffmpeg-cvslog mailing list