libavformat/matroskaenc.c:1566: error: Integer Overflow L2
  ([0, 9] - 1):unsigned64 by call to `put_ebml_void`.

libavformat/matroskaenc.c:1516:1: Parameter `s->priv_data->reserve_cues_space`
1514. }
1515. 
1516. static int mkv_write_trailer(AVFormatContext *s)
      ^
1517. {
1518.     MatroskaMuxContext *mkv = s->priv_data;

libavformat/matroskaenc.c:1566:21: Call
1564. 
1565.                 if (cues_end < cuespos + mkv->reserve_cues_space)
1566.                     put_ebml_void(pb, mkv->reserve_cues_space -
                          ^
1567.                                   (cues_end - cuespos));
1568. 

libavformat/matroskaenc.c:228:1: <LHS trace>
226.  * @param size The number of bytes to reserve, which must be at least 2.
227.  */
228. static void put_ebml_void(AVIOContext *pb, uint64_t size)
     ^
229. {
230.     int64_t currentpos = avio_tell(pb);

libavformat/matroskaenc.c:228:1: Parameter `size`
  226.  * @param size The number of bytes to reserve, which must be at least 2.
  227.  */
  228. static void put_ebml_void(AVIOContext *pb, uint64_t size)
       ^
  229. {
  230.     int64_t currentpos = avio_tell(pb);

libavformat/matroskaenc.c:239:9: Binary operation: ([0, 9] - 1):unsigned64 by call to `put_ebml_void` 
  237.     // size if possible, 1 byte otherwise
  238.     if (size < 10)
  239.         put_ebml_num(pb, size - 1, 0);
               ^
  240.     else
  241.         put_ebml_num(pb, size - 9, 8);
