aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-04-01 19:01:37 +0200
committerAnton Khirnov <anton@khirnov.net>2012-04-15 20:37:47 +0200
commit89605e4aa018f75fef1de531449383b0e9d1bfe1 (patch)
treedd63277813925917792d3f5ba696adc6f140202d
parent3e901cbc753ec6ddd20ebec4efd1e6f2bd404b39 (diff)
downloadffmpeg-89605e4aa018f75fef1de531449383b0e9d1bfe1.tar.gz
avconv: send EOF to vsrc_buffer.
-rw-r--r--avconv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index 461d23445e..a8824efff4 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,