[FFmpeg-cvslog] avconv: send EOF to vsrc_buffer.

Anton Khirnov git at videolan.org
Tue Apr 17 12:27:17 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Apr  1 19:01:37 2012 +0200| [89605e4aa018f75fef1de531449383b0e9d1bfe1] | committer: Anton Khirnov

avconv: send EOF to vsrc_buffer.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89605e4aa018f75fef1de531449383b0e9d1bfe1
---

 avconv.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/avconv.c b/avconv.c
index 461d234..a8824ef 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,



More information about the ffmpeg-cvslog mailing list