]> git.sesse.net Git - ffmpeg/commitdiff
avconv: send EOF to vsrc_buffer.
authorAnton Khirnov <anton@khirnov.net>
Sun, 1 Apr 2012 17:01:37 +0000 (19:01 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 15 Apr 2012 18:37:47 +0000 (20:37 +0200)
avconv.c

index 461d23445ed117d38f063d703a196fee26099967..a8824efff48000c0efebce0bac728890908dc9ba 100644 (file)
--- 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,