[FFmpeg-devel] [PATCH] movie: set pkt->stream_index for flushing.

Nicolas George nicolas.george at normalesup.org
Tue Aug 14 11:16:51 CEST 2012


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

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 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);
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list