mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
lavf: update AVStream.nb_frames when muxing.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user