diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-21 19:41:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-21 19:41:54 +0200 |
commit | 13381577d181fa732d6d2fa0491fa2ff50186546 (patch) | |
tree | c3f8573ace8b78a7bf4e4250df1fe4238b5ad197 /libavformat | |
parent | 5a35bd92ad6b535fd5d3a7513169661de66ec247 (diff) | |
download | ffmpeg-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.c | 2 |
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 */ |