avcodec/bink: Reorder operations in init to avoid memleak on error
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Jun 2019 19:52:24 +0000 (21:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 07:56:43 +0000 (09:56 +0200)
commit2603f25d326476a83f5d093b522590b05b6e703b
tree89fbf39ba36559ef258195c79f7e6c39a390acb1
parentdd357d76e5faf3ce6fc46ffb924cf30f1cb54af9
avcodec/bink: Reorder operations in init to avoid memleak on error

Fixes: Direct leak of 536 byte(s) in 1 object(s)
Fixes: 15266/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuzzer-5629530426834944

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bink.c