+ if (len + 24 > bytestream2_get_bytes_left(&g)) {
+ av_log(s, AV_LOG_ERROR, "Attached picture metadata block too short\n");
+ if (s->error_recognition & AV_EF_EXPLODE)
+ return AVERROR_INVALIDDATA;
+ return 0;
+ }
+ bytestream2_get_bufferu(&g, mimetype, len);