[FFmpeg-cvslog] r13548 - trunk/ffserver.c

bcoudurier subversion
Fri May 30 03:46:57 CEST 2008


Author: bcoudurier
Date: Fri May 30 03:46:57 2008
New Revision: 13548

Log:
log error when writing frame to output

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Fri May 30 03:46:57 2008
@@ -2176,8 +2176,10 @@ static int http_prepare_data(HTTPContext
                         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;




More information about the ffmpeg-cvslog mailing list