mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
aiff: Skip padding byte for odd-sized chunks
Bug-Id: 660
This commit is contained in:
parent
0df4801105
commit
0638b99cdb
@ -267,10 +267,14 @@ static int aiff_read_header(AVFormatContext *s)
|
||||
avio_read(pb, st->codecpar->extradata, size);
|
||||
break;
|
||||
default: /* Jump */
|
||||
if (size & 1) /* Always even aligned */
|
||||
size++;
|
||||
avio_skip(pb, size);
|
||||
}
|
||||
|
||||
/* Skip required padding byte for odd-sized chunks. */
|
||||
if (size & 1) {
|
||||
filesize--;
|
||||
avio_skip(pb, 1);
|
||||
}
|
||||
}
|
||||
|
||||
got_sound:
|
||||
|
Loading…
x
Reference in New Issue
Block a user