avformat/swfdec: Move packet size check before side data allocation
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Aug 2016 01:04:57 +0000 (03:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Aug 2016 01:05:52 +0000 (03:05 +0200)
commit2a3720bc22d92d236ce62112edf80103e33ece1b
treef7f374f9d71b2f0f15ea5a0fc5f6ed71b1871acd
parent237207645b36fb79759d313c0399ee93ba467b9d
avformat/swfdec: Move packet size check before side data allocation

Fixes memleak
Fixes: 9eb9cf5b8c26dd0fa7107ed0348dcc1f/signal_sigabrt_7ffff6ae7c37_8927_f14c2a6ae1ad0bbde2c94f1da50e7074.swf

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/swfdec.c