Browse Source

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>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
6d24fe2c3c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/segafilm.c

+ 1
- 1
libavformat/segafilm.c 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++];


Loading…
Cancel
Save