libavformat/wtv.c:473: error: Integer Overflow L2
  ([2, 2147483647] + 2):signed32 by call to `avio_get_str16le`.

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

libavformat/aviobuf.c:708:1: <LHS trace>
706. }\
707. 
708. GET_STR16(le, avio_rl16)
     ^
709. GET_STR16(be, avio_rb16)
710. 

libavformat/aviobuf.c:708:1: Assignment
  706. }\
  707. 
  708. GET_STR16(le, avio_rl16)
       ^
  709. GET_STR16(be, avio_rb16)
  710. 

libavformat/aviobuf.c:708:1: Binary operation: ([2, 2147483647] + 2):signed32 by call to `avio_get_str16le` 
  706. }\
  707. 
  708. GET_STR16(le, avio_rl16)
       ^
  709. GET_STR16(be, avio_rb16)
  710. 

GET_STR16(le, avio_rl16)
['static void get_attachment(AVFormatContext *s, AVIOContext *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    avio_r8(pb);\n    avio_get_str16le(pb, INT_MAX, description, sizeof(description));\n    filesize = avio_rl32(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    avio_read(pb, st->codec->extradata, filesize);\ndone:\n    url_fseek(pb, pos + length, SEEK_SET);\n}', 'GET_STR16(le, avio_rl16)']