avcodec/j2kenc: Only allocate cblk.data once
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 24 Nov 2017 02:49:55 +0000 (03:49 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 24 Nov 2017 03:04:39 +0000 (04:04 +0100)
commit7c191dfba76ce23e3605d2866f11d5c7ffcafd11
tree6fb4c1357fbe8fc4a3e69860c180324c29fd66a1
parentefb51c8ebbe21f701da816bb78aefc0ce98b378d
avcodec/j2kenc: Only allocate cblk.data once

Fixes: memleak
Found-by: <jamrial>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/j2kenc.c