]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Don't needlessly copy AVCodecParameters
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 22 Jan 2020 19:03:15 +0000 (20:03 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 21 Apr 2020 06:28:58 +0000 (08:28 +0200)
commit75e50c3141c5e3f96110fcab5fb819736dcdc62e
tree1f96ac80130da4e07e16a2fc3ffee05968c497f3
parentabc7dc32bd36759e82e2298eb884c0aa41ca0ac2
avformat/matroskaenc: Don't needlessly copy AVCodecParameters

At the end of encoding, the FLAC encoder sends a packet whose side data
contains updated extradata (e.g. a correct md5 checksum). The Matroska
muxer uses this to update the CodecPrivate.

In doing so, the stream's codecpar was copied. But given that writing
a FLAC CodecPrivate does not modify the used AVCodecParameters at all,
there is no need to do so and this commit changes this.

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