lavf/webm_chunk: Respect buffer size
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 19 Apr 2019 22:03:14 +0000 (00:03 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 May 2019 17:04:05 +0000 (19:04 +0200)
commit9fad760f56483f0b5503457c780d9f80a84784c6
tree2b80c00a829eafa4254ba8f09ceb285158c3258d
parente38fc0af12c7b8b65b05039e6209810bac9b8325
lavf/webm_chunk: Respect buffer size

The last argument of av_strlcpy is supposed to contain the size of the
destination buffer, but it was filled with the size of the source
string, effectively negating its very purpose.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 73ef1f47f59333328264a968c8fbbcfb0bf0643f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/webm_chunk.c