avcodec/utils: fix memleak on avcodec_open2() failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>