avformat/rmdec: move packet allocation down
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Dec 2013 17:09:58 +0000 (18:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Dec 2013 03:16:10 +0000 (04:16 +0100)
commit165f96cd2d687122748f862a0bc6e9908fe3d5d2
treed041f02bc96aa0c730d61d7911226497dc38fce5
parent4e394a98f2ea2e255703dcc4af050fe21e4f738f
avformat/rmdec: move packet allocation down

Fixes memleak
Fixes: msan_uninit-mem_7fc5d73327d4_6192_kuerti.ra
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rmdec.c