decode: avoid leaks on failure in ff_get_buffer()
authorAnton Khirnov <anton@khirnov.net>
Sat, 1 Jul 2017 09:32:56 +0000 (11:32 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 26 Jul 2017 21:23:47 +0000 (23:23 +0200)
commitde77671438c24ffea93398c8dc885d4dd04477de
treea6c7ff57205c6fcbc3cebe00763b8080a7d148e3
parent70946e605924e2108c39f96faa369c220177f301
decode: avoid leaks on failure in ff_get_buffer()

If the get_buffer() call fails, the frame might have some side data
already set. Make sure it gets freed.

CC: libav-stable@libav.org
libavcodec/decode.c