mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
return 1 when error during write frame, state changed
Originally committed as revision 13851 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8aae202e44
commit
4f0a942bae
@ -2187,6 +2187,7 @@ static int http_prepare_data(HTTPContext *c)
|
||||
if (av_write_frame(ctx, &pkt) < 0) {
|
||||
http_log("Error writing frame to output\n");
|
||||
c->state = HTTPSTATE_SEND_DATA_TRAILER;
|
||||
return 1;
|
||||
}
|
||||
|
||||
len = url_close_dyn_buf(ctx->pb, &c->pb_buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user