Browse Source

xmvdemux: dont let current_stream become invalid.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 13381577d1)
tags/n0.10.3
Michael Niedermayer 14 years ago
parent
commit
a4846943a3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/xmv.c

+ 1
- 1
libavformat/xmv.c View File

@@ -300,7 +300,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…
Cancel
Save