avconv: send EOF to vsrc_buffer.
This commit is contained in:
parent
3e901cbc75
commit
89605e4aa0
3
avconv.c
3
avconv.c
@ -2216,6 +2216,9 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
|
|||||||
quality = same_quant ? decoded_frame->quality : 0;
|
quality = same_quant ? decoded_frame->quality : 0;
|
||||||
if (!*got_output) {
|
if (!*got_output) {
|
||||||
/* no picture yet */
|
/* no picture yet */
|
||||||
|
if (!pkt->size)
|
||||||
|
for (i = 0; i < ist->nb_filters; i++)
|
||||||
|
av_buffersrc_buffer(ist->filters[i]->filter, NULL);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
decoded_frame->pts = guess_correct_pts(&ist->pts_ctx, decoded_frame->pkt_pts,
|
decoded_frame->pts = guess_correct_pts(&ist->pts_ctx, decoded_frame->pkt_pts,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user