lavf: update AVStream.nb_frames when muxing.

This commit is contained in:
Anton Khirnov
2011-03-16 08:45:14 +01:00
parent e98bc78ca1
commit 1c6d2b7df0
2 changed files with 8 additions and 1 deletions

View File

@ -932,7 +932,7 @@ static int mkv_write_ass_blocks(AVFormatContext *s, AVIOContext *pb, AVPacket *p
size -= start - data;
sscanf(data, "Dialogue: %d,", &layer);
i = snprintf(buffer, sizeof(buffer), "%"PRId64",%d,",
s->streams[pkt->stream_index]->nb_frames++, layer);
s->streams[pkt->stream_index]->nb_frames, layer);
size = FFMIN(i+size, sizeof(buffer));
memcpy(buffer+i, start, size-i);