Free encoder extradata in avcodec_close(). Should fix several small memory