1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avformat/matroskaenc: Don't reserve unnecessarily many EBML elements

bda44f0f39 added code that
potentially added another BlockMore master and BlockAdditional
data as well as BlockAddID number, yet it bumped the number
of EBML elements by four instead of only three.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-08-06 21:47:52 +02:00
parent c797b6400d
commit fd8a395cd7

View File

@ -2709,8 +2709,8 @@ static int mkv_write_block(void *logctx, MatroskaMuxContext *mkv,
size_t side_data_size;
uint64_t additional_id;
unsigned track_number = track->track_num;
EBML_WRITER(12);
int ret;
EBML_WRITER(13);
mkv->cur_block.track = track;
mkv->cur_block.pkt = pkt;