From 89605e4aa018f75fef1de531449383b0e9d1bfe1 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 1 Apr 2012 19:01:37 +0200 Subject: [PATCH] avconv: send EOF to vsrc_buffer. --- avconv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/avconv.c b/avconv.c index 461d23445ed..a8824efff48 100644 --- a/avconv.c +++ b/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; if (!*got_output) { /* no picture yet */ + if (!pkt->size) + for (i = 0; i < ist->nb_filters; i++) + av_buffersrc_buffer(ist->filters[i]->filter, NULL); return ret; } decoded_frame->pts = guess_correct_pts(&ist->pts_ctx, decoded_frame->pkt_pts, -- 2.39.2