35 if (
avio_read(s, *g,
sizeof(*g)) < (
int)
sizeof(*g)) {
36 memset(*g, 0,
sizeof(*g));
69 if (!memcmp(subformat + 4,
108 "Invalid bit rate: %d\n", codec->
bit_rate);
137 cbSize =
FFMIN(size, cbSize);
138 if (cbSize >= 22 &&
id == 0xfffe) {
225 if (chunk_code || chunk_size) {
231 if (chunk_size > end ||
232 end - chunk_size < cur ||
233 chunk_size == UINT_MAX) {
237 if (chunk_size > end || end - chunk_size < cur || chunk_size == UINT_MAX) {
243 chunk_size += (chunk_size & 1);
258 "out of memory, unable to read INFO tag\n");
264 if (
avio_read(pb, value, chunk_size) != chunk_size) {
266 "premature end of file while reading INFO tag\n");