]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Avoid dynamic buffer when writing Colour
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 29 Apr 2020 18:22:40 +0000 (20:22 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 6 May 2020 08:22:48 +0000 (10:22 +0200)
commit3122dcf2fe54c427aecdbba2ee85788981e3236b
tree78ac2ba20dc9b371d4a7656a424367fe60977b49
parent851283a777b7f841eed49ff6d0417aa18c9d732e
avformat/matroskaenc: Avoid dynamic buffer when writing Colour

There is a good upper bound for the maximum length of the Colour master
element; it is therefore unnecessary to use a dynamic buffer for it.
A simple buffer on the stack is enough. This commit implements this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskaenc.c