lavc/options: fix shallow copy context
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sat, 8 Nov 2014 16:01:40 +0000 (17:01 +0100)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Sun, 9 Nov 2014 16:56:08 +0000 (17:56 +0100)
commitdb2caf0a80d25696a1b0a1308e79a2a128ec36f9
treeb88d06c5f48b410f18e394a15561b520cc681895
parent86476c510ebd14d33ed02289d71bae874f8707a4
lavc/options: fix shallow copy context

avcodec_copy_context leaves shallow copy of string/binary/dict options.
Double free/accessing freed memory may occur.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
libavcodec/options.c