avcodec/options: do a more thorough clean up in avcodec_copy_context()
authorJames Almer <jamrial@gmail.com>
Mon, 24 Apr 2017 17:53:47 +0000 (14:53 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 1 May 2017 02:18:05 +0000 (23:18 -0300)
commitcac8de2da5c4935773128335c11b806faa73e19d
treeaa5ff0c94c78656e262d0861e6f505890f87265c
parent54a4c9b4e9a1524b1ac5d2be97c8042272402d0a
avcodec/options: do a more thorough clean up in avcodec_copy_context()

Free coded_frame, coded_side_data and unref hw_device_ctx to prevent
potential leaks.

Reviewed-by: Aaron Levinson <alevinsn@aracnet.com>
Tested-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/options.c