提交 0638b99c 编写于 作者: D Diego Biurrun

aiff: Skip padding byte for odd-sized chunks

Bug-Id: 660
上级 0df48011
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册