]> git.sesse.net Git - ffmpeg/commit
avformat/matroskadec: Check before allocations
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 3 Dec 2019 17:09:03 +0000 (18:09 +0100)
committerJames Almer <jamrial@gmail.com>
Thu, 5 Dec 2019 02:11:37 +0000 (23:11 -0300)
commitf7bf59b431e0921d5f318154f64c78bb226e33b9
treed8206c7291fea5b43ace22b2436e895f260af75b
parent94fd85d81d5084f22a159e5694b7a5cde1c8f489
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>
libavformat/matroskadec.c