Commit 6d24fe2c authored by Michael Niedermayer's avatar Michael Niedermayer

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

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ed66bbfc
......@@ -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++];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment