webm_dash_manifest_demuxer: Fix UB in cue timestamp string code and make it actually...
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Thu, 20 Apr 2017 14:02:54 +0000 (15:02 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sun, 23 Apr 2017 16:51:41 +0000 (17:51 +0100)
commit8e6b9ef4733be91b32c8b7becd95124340b92334
tree75930917f7c8f475beadb743213bfb35b54872e9
parent41b0561dc7246b72a834067da539ae98b1ec6631
webm_dash_manifest_demuxer: Fix UB in cue timestamp string code and make it actually work

Output was apparently not tested for correctness. Passing overlapping
memory to snprintf causes undefined behavior, and usually resulted in
only the very last timestamp being written to metadata, and not a list
at all.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/matroskadec.c