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

libavformat/matroskaenc.c:1189:16: <LHS trace>
1187.         i = snprintf(buffer, sizeof(buffer), "%" PRId64 ",%d,",
1188.                      s->streams[pkt->stream_index]->nb_frames, layer);
1189.         size = FFMIN(i + size, sizeof(buffer));
                     ^
1190.         memcpy(buffer + i, start, size - i);
1191. 

libavformat/matroskaenc.c:1189:16: Assignment
1187.         i = snprintf(buffer, sizeof(buffer), "%" PRId64 ",%d,",
1188.                      s->streams[pkt->stream_index]->nb_frames, layer);
1189.         size = FFMIN(i + size, sizeof(buffer));
                     ^
1190.         memcpy(buffer + i, start, size - i);
1191. 

libavformat/matroskaenc.c:1189:9: Assignment
1187.         i = snprintf(buffer, sizeof(buffer), "%" PRId64 ",%d,",
1188.                      s->streams[pkt->stream_index]->nb_frames, layer);
1189.         size = FFMIN(i + size, sizeof(buffer));
              ^
1190.         memcpy(buffer + i, start, size - i);
1191. 

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

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

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

libavformat/matroskaenc.c:1190:9: Binary operation: ([-oo, +oo] - [0, +oo]):signed32
1188.                      s->streams[pkt->stream_index]->nb_frames, layer);
1189.         size = FFMIN(i + size, sizeof(buffer));
1190.         memcpy(buffer + i, start, size - i);
              ^
1191. 
1192.         av_log(s, AV_LOG_DEBUG,
