aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-21 19:41:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-21 19:41:54 +0200
commit13381577d181fa732d6d2fa0491fa2ff50186546 (patch)
treec3f8573ace8b78a7bf4e4250df1fe4238b5ad197 /libavformat
parent5a35bd92ad6b535fd5d3a7513169661de66ec247 (diff)
downloadffmpeg-13381577d181fa732d6d2fa0491fa2ff50186546.tar.gz
xmvdemux: dont let current_stream become invalid.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/xmv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index 596da5fb63..73c666ddf9 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -304,7 +304,7 @@ static int xmv_process_packet_header(AVFormatContext *s)
xmv->current_stream = 0;
if (!xmv->video.frame_count) {
xmv->video.frame_count = 1;
- xmv->current_stream = 1;
+ xmv->current_stream = xmv->stream_count > 1;
}
/* Packet audio header */