mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
xmvdemux: dont let current_stream become invalid.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5a35bd92ad
commit
13381577d1
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user