You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
log error when writing frame to output
Originally committed as revision 13548 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -2176,8 +2176,10 @@ static int http_prepare_data(HTTPContext *c)
|
|||||||
pkt.pts = av_rescale_q(pkt.pts,
|
pkt.pts = av_rescale_q(pkt.pts,
|
||||||
c->fmt_in->streams[source_index]->time_base,
|
c->fmt_in->streams[source_index]->time_base,
|
||||||
ctx->streams[pkt.stream_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;
|
c->state = HTTPSTATE_SEND_DATA_TRAILER;
|
||||||
|
}
|
||||||
|
|
||||||
len = url_close_dyn_buf(ctx->pb, &c->pb_buffer);
|
len = url_close_dyn_buf(ctx->pb, &c->pb_buffer);
|
||||||
c->cur_frame_bytes = len;
|
c->cur_frame_bytes = len;
|
||||||
|
Reference in New Issue
Block a user