libavformat/wtv.c:470: error: Integer Overflow L2
  ([0, 2147483649] + 1):signed32 by call to `avio_get_str16le`.

libavformat/wtv.c:470:5: Call
468.     int64_t pos = url_ftell(pb);
469. 
470.     avio_get_str16le(pb, INT_MAX, mime, sizeof(mime));
         ^
471.     if (strcmp(mime, "image/jpeg"))
472.         goto done;

libavformat/aviobuf.c:622:1: <LHS trace>
620. }\
621. 
622. GET_STR16(le, get_le16)
     ^
623. GET_STR16(be, get_be16)
624. 

libavformat/aviobuf.c:622:1: Assignment
  620. }\
  621. 
  622. GET_STR16(le, get_le16)
       ^
  623. GET_STR16(be, get_be16)
  624. 

libavformat/aviobuf.c:622:1: Binary operation: ([0, 2147483649] + 1):signed32 by call to `avio_get_str16le` 
  620. }\
  621. 
  622. GET_STR16(le, get_le16)
       ^
  623. GET_STR16(be, get_be16)
  624. 

GET_STR16(le, get_le16)
['static void get_attachment(AVFormatContext *s, ByteIOContext *pb, int length)\n{\n    char mime[1024];\n    char description[1024];\n    unsigned int filesize;\n    AVStream *st;\n    int64_t pos = url_ftell(pb);\n    avio_get_str16le(pb, INT_MAX, mime, sizeof(mime));\n    if (strcmp(mime, "image/jpeg"))\n        goto done;\n    get_byte(pb);\n    avio_get_str16le(pb, INT_MAX, description, sizeof(description));\n    filesize = get_le32(pb);\n    if (!filesize)\n        goto done;\n    st = av_new_stream(s, 0);\n    if (!st)\n        goto done;\n    av_metadata_set2(&st->metadata, "title", description, 0);\n    st->codec->codec_id   = CODEC_ID_MJPEG;\n    st->codec->codec_type = AVMEDIA_TYPE_ATTACHMENT;\n    st->codec->extradata  = av_mallocz(filesize);\n    if (!st->codec->extradata)\n        goto done;\n    st->codec->extradata_size = filesize;\n    get_buffer(pb, st->codec->extradata, filesize);\ndone:\n    url_fseek(pb, pos + length, SEEK_SET);\n}', 'GET_STR16(le, get_le16)']