diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-03 18:09:03 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-20 00:25:30 +0200 |
commit | 703473ec04311016d2a1636ae9a91d2a1234eb91 (patch) | |
tree | 88c0166a5def2592d523a722f040682261a26dc7 /libavformat/utils.c | |
parent | 2980fb5704654af3decd99c3c16b9622fc6c3463 (diff) | |
download | ffmpeg-703473ec04311016d2a1636ae9a91d2a1234eb91.tar.gz |
avformat/matroskadec: Check before allocations
That way one doesn't have to free later. In this case (concerning TTA
extradata), this also fixes a memleak when the output samplerate is
invalid.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit f7bf59b431e0921d5f318154f64c78bb226e33b9)
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions