libavformat/matroskaenc.c:761: error: Integer Overflow R2
  ([-oo, +oo] - [0, +oo]):signed32.

libavformat/matroskaenc.c:760:16: <LHS trace>
758.         i = snprintf(buffer, sizeof(buffer), "%"PRId64",%d,",
759.                      s->streams[pkt->stream_index]->nb_frames++, layer);
760.         size = FFMIN(i+size, sizeof(buffer));
                    ^
761.         memcpy(buffer+i, start, size-i);
762. 

libavformat/matroskaenc.c:760:16: Assignment
758.         i = snprintf(buffer, sizeof(buffer), "%"PRId64",%d,",
759.                      s->streams[pkt->stream_index]->nb_frames++, layer);
760.         size = FFMIN(i+size, sizeof(buffer));
                    ^
761.         memcpy(buffer+i, start, size-i);
762. 

libavformat/matroskaenc.c:760:9: Assignment
758.         i = snprintf(buffer, sizeof(buffer), "%"PRId64",%d,",
759.                      s->streams[pkt->stream_index]->nb_frames++, layer);
760.         size = FFMIN(i+size, sizeof(buffer));
             ^
761.         memcpy(buffer+i, start, size-i);
762. 

libavformat/matroskaenc.c:758:13: <RHS trace>
756.         size -= start - data;
757.         sscanf(data, "Dialogue: %d,", &layer);
758.         i = snprintf(buffer, sizeof(buffer), "%"PRId64",%d,",
                 ^
759.                      s->streams[pkt->stream_index]->nb_frames++, layer);
760.         size = FFMIN(i+size, sizeof(buffer));

libavformat/matroskaenc.c:758:13: Risky value from: snprintf
756.         size -= start - data;
757.         sscanf(data, "Dialogue: %d,", &layer);
758.         i = snprintf(buffer, sizeof(buffer), "%"PRId64",%d,",
                 ^
759.                      s->streams[pkt->stream_index]->nb_frames++, layer);
760.         size = FFMIN(i+size, sizeof(buffer));

libavformat/matroskaenc.c:758:9: Assignment
756.         size -= start - data;
757.         sscanf(data, "Dialogue: %d,", &layer);
758.         i = snprintf(buffer, sizeof(buffer), "%"PRId64",%d,",
             ^
759.                      s->streams[pkt->stream_index]->nb_frames++, layer);
760.         size = FFMIN(i+size, sizeof(buffer));

libavformat/matroskaenc.c:761:9: Binary operation: ([-oo, +oo] - [0, +oo]):signed32
759.                      s->streams[pkt->stream_index]->nb_frames++, layer);
760.         size = FFMIN(i+size, sizeof(buffer));
761.         memcpy(buffer+i, start, size-i);
             ^
762. 
763.         av_log(s, AV_LOG_DEBUG, "Writing block at offset %" PRIu64 ", size %d, "
