[FFmpeg-cvslog] lavfi/movie: set pkt->stream_index for flushing.

Nicolas George git at videolan.org
Thu Aug 16 18:13:57 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Aug 14 11:08:48 2012 +0200| [584acbf52425da9a4e249a25c9412466203ec683] | committer: Nicolas George

lavfi/movie: set pkt->stream_index for flushing.

Otherwise, the value of stream_index is kept from the last packet
read, which is not necessarily the stream that needs flushing.

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

 libavfilter/src_movie.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 09dfe5d..4ec80b7 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -498,6 +498,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
                 }
                 return AVERROR_EOF;
             }
+            pkt->stream_index = movie->st[out_id].st->index;
             /* packet is already ready for flushing */
         } else {
             ret = av_read_frame(movie->format_ctx, &movie->pkt0);



More information about the ffmpeg-cvslog mailing list