diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-07-08 19:08:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-07-08 20:11:03 +0200 |
commit | 8765b36a526ba1e9698e060f9bcd646f3dfeeaf4 (patch) | |
tree | 61d8d190361d05aaf90782577545c1bd532d9daa | |
parent | bf87688a9fb8afdd9fd9150fb6c7d2b4ca10f48c (diff) | |
download | ffmpeg-8765b36a526ba1e9698e060f9bcd646f3dfeeaf4.tar.gz |
avformat/matroskaenc: Fix potential stack-buffer-overflow
Forgotten in f194f291d8082134cdce625b0ca3548067428ea9
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 216cb48884..e1adc0eba6 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1758,7 +1758,7 @@ static int mkv_write_track_video(AVFormatContext *s, MatroskaMuxContext *mkv, uint8_t color_space[4], projection_private[20]; const AVPacketSideData *sd; EBML_WRITER(MAX_FIELD_ORDER_ELEMS + MAX_STEREO_MODE_ELEMS + - MAX_VIDEO_COLOR_ELEMS + MAX_VIDEO_PROJECTION_ELEMS + 8); + MAX_VIDEO_COLOR_ELEMS + MAX_VIDEO_PROJECTION_ELEMS + 12); int cropped_width = par->width, cropped_height = par->height; int ret; |