summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-14 11:08:48 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-16 18:07:03 +0200
commit584acbf52425da9a4e249a25c9412466203ec683 (patch)
tree832eab82cbb4b976a2e7fd2b414774e39fb48ebb /libavfilter
parentbb46b9a36f2eeb187f76396ccb6be703bb84a2ad (diff)
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.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/src_movie.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 09dfe5d214..4ec80b7a03 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);