Commit 4f0a942b authored by Baptiste Coudurier's avatar Baptiste Coudurier

return 1 when error during write frame, state changed

Originally committed as revision 13851 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8aae202e
...@@ -2187,6 +2187,7 @@ static int http_prepare_data(HTTPContext *c) ...@@ -2187,6 +2187,7 @@ static int http_prepare_data(HTTPContext *c)
if (av_write_frame(ctx, &pkt) < 0) { if (av_write_frame(ctx, &pkt) < 0) {
http_log("Error writing frame to output\n"); http_log("Error writing frame to output\n");
c->state = HTTPSTATE_SEND_DATA_TRAILER; c->state = HTTPSTATE_SEND_DATA_TRAILER;
return 1;
} }
len = url_close_dyn_buf(ctx->pb, &c->pb_buffer); len = url_close_dyn_buf(ctx->pb, &c->pb_buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment