mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 23:33:07 +00:00
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:
parent
ed66bbfcb9
commit
6d24fe2c3c
@ -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…
Reference in New Issue
Block a user