35 if (
avio_read(s, *g,
sizeof(*g)) < (
int)
sizeof(*g)) {
36 memset(*g, 0,
sizeof(*g));
69 if (!memcmp(subformat + 4,
128 cbSize =
FFMIN(size, cbSize);
129 if (cbSize >= 22 &&
id == 0xfffe) {
216 if (chunk_code || chunk_size) {
222 if (chunk_size > end ||
223 end - chunk_size < cur ||
224 chunk_size == UINT_MAX) {
228 if (chunk_size > end || end - chunk_size < cur || chunk_size == UINT_MAX) {
234 chunk_size += (chunk_size & 1);
249 "out of memory, unable to read INFO tag\n");
255 if (
avio_read(pb, value, chunk_size) != chunk_size) {
257 "premature end of file while reading INFO tag\n");