aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-06 21:47:52 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-10 00:17:11 +0200
commitfd8a395cd75f82f31cef408e6da9ece3acfec95c (patch)
tree07de9a2f86601138d88b9c9d5885903bbf6d18f4
parentc797b6400d20633df931d813297db1bac7a94d72 (diff)
downloadffmpeg-fd8a395cd75f82f31cef408e6da9ece3acfec95c.tar.gz
avformat/matroskaenc: Don't reserve unnecessarily many EBML elements
bda44f0f39e8ee646e54f15989d7845f4bf58d26 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>
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index c1f40b26e6..7eb734f1a9 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -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;