segafilm: make the loop condition in film_read_packet() match the contents.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-04-16 01:24:04 +02:00
parent ed66bbfcb9
commit 6d24fe2c3c

View File

@ -290,7 +290,7 @@ static int film_read_packet(AVFormatContext *s,
left = 0;
right = sample->sample_size / 2;
for (i = 0; i < sample->sample_size; ) {
for (i = 0; i + 1 + 2*(film->audio_bits != 8) < sample->sample_size; ) {
if (film->audio_bits == 8) {
pkt->data[i++] = film->stereo_buffer[left++];
pkt->data[i++] = film->stereo_buffer[right++];